jsdsi
Class ObjectHash

java.lang.Object
  |
  +--jsdsi.Obj
        |
        +--jsdsi.ObjectHash
All Implemented Interfaces:
Subject

public class ObjectHash
extends Obj
implements Subject

The cryptographic hash of an object.

Author:
Sameer Ajmani

Nested Class Summary
 
Nested classes inherited from class jsdsi.Subject
Subject.Default
 
Constructor Summary
ObjectHash(Hash h)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Hash getHash()
           
 int hashCode()
           
 boolean isHashOf(Obj o)
           
(package private) static ObjectHash parseObjectHash(SexpList l)
           
 SexpList toSexp()
           
 
Methods inherited from class jsdsi.Obj
parseObj, parseObj, toByteArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectHash

public ObjectHash(Hash h)
Method Detail

getHash

public Hash getHash()

isHashOf

public boolean isHashOf(Obj o)

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in class Obj

hashCode

public int hashCode()
Specified by:
hashCode in class Obj

toSexp

public SexpList toSexp()
Specified by:
toSexp in interface Subject
Specified by:
toSexp in class Obj

parseObjectHash

static ObjectHash parseObjectHash(SexpList l)
                           throws SexpParseException
SexpParseException