public class ArrayHashValue extends Object implements HashValue
| Modifier and Type | Field and Description |
|---|---|
private static String |
DELIMETER
The delimeter between the individual HashValues
|
private Integer[] |
hashValues
The Array of HashValues.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ArrayHashValue()
Constructor.
|
ArrayHashValue(Integer[] hashValues)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HashValue |
decodeFromString(String s)
Decode a
HashValue from the given String. |
String |
encodeToString()
Encode to String in order to easily store in a database.
|
boolean |
equals(Object obj) |
String |
toString() |
private static final long serialVersionUID
private Integer[] hashValues
private static final String DELIMETER
public ArrayHashValue()
public ArrayHashValue(Integer[] hashValues)
hashValues - The Array of Hash values.public String encodeToString()
HashValueencodeToString in interface HashValuepublic HashValue decodeFromString(String s)
HashValueHashValue from the given String. This is necessary when you load a hash from a database.decodeFromString in interface HashValues - The given String representation.HashValue.Copyright © 2017–2019. All rights reserved.