|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.commonapi.PastryIdFactory
This class provides applications with a way of genertating pastry Ids.
Constructor Summary | |
PastryIdFactory()
Constructor |
Method Summary | |
Id |
buildId(byte[] material)
Builds a protocol-specific Id given the source data. |
Id |
buildId(int[] material)
Builds a protocol-specific Id given the source data. |
Id |
buildId(java.lang.String string)
Builds a protocol-specific Id by using the hash of the given string as source data. |
Id.Distance |
buildIdDistance(byte[] material)
Builds a protocol-specific Id.Distance given the source data. |
IdRange |
buildIdRange(Id cw,
Id ccw)
Creates an IdRange given the CW and CCW ids. |
IdSet |
buildIdSet()
Creates an empty IdSet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PastryIdFactory()
Method Detail |
public Id buildId(byte[] material)
buildId
in interface IdFactory
material
- The material to use
public Id buildId(int[] material)
buildId
in interface IdFactory
material
- The material to use
public Id buildId(java.lang.String string)
buildId
in interface IdFactory
string
- The string to use as source data
public Id.Distance buildIdDistance(byte[] material)
buildIdDistance
in interface IdFactory
material
- The material to use
public IdRange buildIdRange(Id cw, Id ccw)
buildIdRange
in interface IdFactory
cw
- The clockwise Idccw
- The counterclockwise Id
public IdSet buildIdSet()
buildIdSet
in interface IdFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |