Questions tagged [signature]

In computer programming, especially object-oriented programming, a method is commonly identified by its unique method signature, which usually includes the method name, and the number, types and order of its parameters. A method signature is the smallest type of a method. The signature tag should not be used to tag questions about digital signatures, email signatures or written signatures.

Method signature

In computer programming, especially object-oriented programming, a method is commonly identified by its unique method signature, which usually includes the method name, and the number, types and order of its parameters. A method signature is the smallest type of a method.

Method overloading

Method signatures can be used by the compiler to distinguish between methods with the same name, but with different parameters. This is called method overloading. The precise characteristics of method overloading depends on the programming language. Overloading should not be used for methods that perform an different operation as that will make the source code hard to read.

Examples

Example of declarations of two overloaded methods with the same name, but with a different method signature:

void drawPoint(int x, int y);
void drawPoint(Point p);

in this case it is likely that drawPoint(x, y) internally converts x and y into a Point instance. This kind of function is therefore called a convenience method.

Disambiguation

For digital signatures such as RSA or DSA signatures please use and/or . Email may contain an email-signature, PDF documents may contain a digitized written signature. These signatures don't have specialized tags, please use more generic tags such as and instead.

2003 questions
7
votes
1 answer

Using Azure CDN with Shared Access Signatures

Im trying to incorporate Azure to store the majority of my files for an application. I want to upload these files to a private container and private blob in azure, and have those uploads copied through the Azure CDN to all of the other nodes (still…
SchaF
  • 83
  • 1
  • 7
7
votes
1 answer

Can I suppress variable expansion in Sphinx documentation?

In my code I have X_DEFAULT = ['a', 'long', 'list', 'of', 'values', 'that', 'is', 'really', 'ugly', 'to', 'see', 'over', 'and', 'over', 'again', 'every', 'time', 'it', 'is', 'referred', 'to', 'in', 'the', 'documentation'] and later def…
orome
  • 45,163
  • 57
  • 202
  • 418
7
votes
3 answers

Omitting throws declarations in derived classes

Consider the following interface: public interface Generator { String generate() throws IOException; } and the following implementation: public class EmptyStringGenerator implements Generator { @Override public String generate() { …
Jan Dörrenhaus
  • 6,581
  • 2
  • 34
  • 45
7
votes
1 answer

Is there a way to convert JSON to an SVG object?

I'm working on a signature capture applet and one of the requirements is that it stores the signature as an SVG for future use. I am currently using Signature Pad to capture the signature, but it stores it as JSON. Is there anyway to generate an…
robertingrum
  • 127
  • 1
  • 2
  • 6
7
votes
1 answer

How to get the names of AcroField revisions in iText?

I'm currently working on a tool for applying and verifying digital signatures on pdf documents. I understand that each signature in a pdf document is applied to a certain revision of the AcroFields. Each time the user changes some input (i.e. by…
Tom
  • 3,913
  • 19
  • 28
7
votes
2 answers

Find out what stored procedures are signed using certificate in SQL Server 2008

I am producing a database update script I want to find out stored procedures have been signed using various certificates. I can get the list of stored procedures using sys.procedures and I can get the list of certificates using sys.certificates but…
7
votes
2 answers

Update of Android system app, with/without platform signature

I have a system app that the OEM installs with the system image, but is signed by me. If I upload an updated apk to the market, will the market app silently install this update automatically? If my system app is instead signed with the platform…
Android QS
  • 416
  • 2
  • 8
  • 17
7
votes
1 answer

Invalid signature: oauth_signature

I am trying to produce oauth_signature to use Fatsecret API, but getting invalid signature error - can't figure out why. I tried to follow all steps mentioned here (see step 2) for Signature value generation as accurately as possible. They say: Use…
NightFury
  • 13,436
  • 6
  • 71
  • 120
7
votes
2 answers

Both Action and Func without explicit casting

I have a class that has to receive methods in order to call them as well as doing other executions. These methods have to be used many times and for many different users so the simpler the better. To deal with this I have two methods: void…
Alfort
  • 91
  • 1
  • 1
  • 9
7
votes
7 answers

How to convert image to html?

Is there a way to convert an image to an html equivalent of the image, by having an html table divided up into many cells each having a certain background colour which would act like pixels in an image? Much like ASCII art. I would see this as a…
CJ7
  • 22,579
  • 65
  • 193
  • 321
7
votes
4 answers

Best Practice - HashMap instead of list of parameters, good idea ?

Hi Stackoverflow community, I am working on some code where a list of optional criterias criterias is submitted to my dao. Method signature contains the list of +/- 10 parameters, which I really don't like and want to reformat. Plus I would like to…
Jako
  • 944
  • 14
  • 33
7
votes
2 answers

signature capture for android using phonegap

i want to perform an application in android using phonegap which captures the signature entered by the user and take a snapshot of it and stores and later on their next login it compare the signature with stored one and if matches it opens the…
android phonegap
  • 830
  • 3
  • 17
  • 35
6
votes
6 answers

C++ Function Callbacks: Cannot convert from a member function to a function signature

I'm using a 3rd party library that allows me to register callbacks for certain events. The register function looks something like this. It uses the Callback signature. typedef int (*Callback)(std::string); void registerCallback(Callback pCallback)…
Jonathan Ross
  • 61
  • 1
  • 4
6
votes
2 answers

Haskell: Types don't match

I just tried to write a simple function to calculate the average of the input-Ints: avg :: Int -> Int -> Int -> Float avg x y z = (x+y+z)/3 When I exchange the signature to avg :: Float -> Float -> Float -> Float it works fine, but with the one…
user1000742
  • 183
  • 2
  • 10
6
votes
1 answer

Before signing a mac app and uploading it to the app store

I've been dealing with an issue for a while. The issue is that when I submit my mac app to the app store I'm always getting invalid binary and they are saying it's because of an invalid signature. And that I should make sure it's signed with the…
inFever
  • 1,809
  • 2
  • 16
  • 19