|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDMaker
Interface for objects that define how to make an ID for a sequence.
Nine times out of ten, you will use one of HashSequenceDB.byURN or HashSequenceDB.byName, but once in a blue-moon, you will want some other systematic way of retrieveing Sequences. This interface is here to allow you to plug in this functionality if you need it.
| Nested Class Summary | |
|---|---|
static class |
IDMaker.ByName
|
static class |
IDMaker.ByURN
|
| Field Summary | |
|---|---|
static IDMaker |
byName
A simple implementation of IDMaker that hashes by sequence name. |
static IDMaker |
byURN
A simple implementation of IDMaker that hashes by URN. |
| Method Summary | |
|---|---|
String |
calcID(Sequence seq)
Calculate the id for a sequence. |
| Field Detail |
|---|
static final IDMaker byURN
static final IDMaker byName
| Method Detail |
|---|
String calcID(Sequence seq)
Each unique sequence should return a unique ID.
seq - the sequence to ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||