Package org.shredzone.commons.view
Class Signature
- java.lang.Object
-
- org.shredzone.commons.view.Signature
-
@ParametersAreNonnullByDefault public final class Signature extends Object
A signature is a hash key for a set of String elements. It is ensured that the same collection of Strings results in an equal signature object, irregarding of the string order.Signatures are immutable.
- Author:
- Richard "Shred" Körber
-
-
Constructor Summary
Constructors Constructor Description Signature(String[] elements)
Instantiates a new signature.Signature(Collection<String> elements)
Instantiates a new signature.
-
-
-
Constructor Detail
-
Signature
public Signature(Collection<String> elements)
Instantiates a new signature.- Parameters:
elements
- collection of strings to build the signature for
-
-