org.alliance.core.file.hash
Class Hash
java.lang.Object
org.alliance.core.file.hash.Hash
- All Implemented Interfaces:
- java.io.Serializable
public class Hash
- extends java.lang.Object
- implements java.io.Serializable
Created by IntelliJ IDEA.
User: maciek
Date: 2006-jan-06
Time: 16:15:12
To change this template use File | Settings | File Templates.
- See Also:
- Serialized Form
|
Field Summary |
protected byte[] |
hash
|
protected static int |
HASH_SIZE
|
|
Constructor Summary |
Hash()
|
Hash(byte[] hash)
|
Hash(java.lang.String hash)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
HASH_SIZE
protected static final transient int HASH_SIZE
- See Also:
- Constant Field Values
hash
protected byte[] hash
Hash
public Hash()
Hash
public Hash(java.lang.String hash)
Hash
public Hash(byte[] hash)
array
public byte[] array()
setHash
public void setHash(byte[] hash)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getRepresentation
public java.lang.String getRepresentation()
createFrom
public static Hash createFrom(java.io.DataInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
createFrom
public static Hash createFrom(java.lang.String base64encoded)