|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.in.MD5Key
public class MD5Key
Provides support for computing an MD5 key for an object. Such a key may be
used to obtain a hash code for an object and also supports implementation of
a fast equals(Object)
method for objects whose natural method might
be computationally expensive.
Instances are immutable.
Constructor Summary | |
---|---|
MD5Key(Object obj)
Constructs from an object. |
|
MD5Key(Object[] objs)
Constructs from an array of objects. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Indicates if this instance is semantically identical to another object. |
int |
hashCode()
Returns the hash code of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MD5Key(Object obj) throws IOException
obj
- The object to have an MD5 checksum computed for
it.
IOException
- Couldn't compute MD5 checksum.public MD5Key(Object[] objs) throws IOException
objs
- The objects to have an MD5 checksum computed for
them.
IOException
- Couldn't compute MD5 checksum.Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
obj
- The other object.
true
if and only if this instance
is semantically identical to the other object.public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |