|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.Obj jsdsi.ObjectHash
The cryptographic hash of an object.
Nested Class Summary |
Nested classes inherited from class jsdsi.Subject |
Subject.Default |
Field Summary |
Fields inherited from class jsdsi.Obj |
_obj |
Constructor Summary | |
ObjectHash(Hash h)
The Hash of this ObjectHash . |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
Hash |
getHash()
|
int |
hashCode()
|
boolean |
isHashOf(Obj o)
Checks whether this ObjectHash is a hash of the given
object. |
SexpList |
toSexp()
Returns an S-expression of this ObjectHash |
Methods inherited from class jsdsi.Obj |
parseObj, parseObj, readResolve, toByteArray, toString, toString, toTransport |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectHash(Hash h)
Hash
of this ObjectHash
.
Method Detail |
public Hash getHash()
Hash
of this ObjectHash
.public boolean isHashOf(Obj o)
ObjectHash
is a hash of the given
object.
o
- object to check for if this object hash is a hash from it.
true
if this object hash is a hash of
o
, false
otherwise.public boolean equals(java.lang.Object o)
equals
in class Obj
Object.equals(Object)
public int hashCode()
hashCode
in class Obj
Object.hashCode()
public SexpList toSexp()
ObjectHash
toSexp
in interface Subject
toSexp
in class Obj
SexpList
that represents this SDSI-object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |