|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.taxon.ImmutableMapTaxonomyResolver
public class ImmutableMapTaxonomyResolver
An immutable taxonomy resolver implemented on top of a map.
The map of taxonomy by ID is loaded and fixed at construction. This is most useful when the taxonomies are known at startup.
Constructor Summary | |
---|---|
ImmutableMapTaxonomyResolver()
Creates a resolver that contains no taxonomies. |
|
ImmutableMapTaxonomyResolver(Map<Short,FudgeTaxonomy> taxonomiesById)
Creates a resolver that contains the given taxonomies. |
Method Summary | |
---|---|
FudgeTaxonomy |
resolveTaxonomy(short taxonomyId)
Looks up the taxonomy by ID. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImmutableMapTaxonomyResolver()
public ImmutableMapTaxonomyResolver(Map<Short,FudgeTaxonomy> taxonomiesById)
taxonomiesById
- a map of taxonomy IDs to taxonomy instances, null treated as an empty mapMethod Detail |
---|
public FudgeTaxonomy resolveTaxonomy(short taxonomyId)
TaxonomyResolver
resolveTaxonomy
in interface TaxonomyResolver
taxonomyId
- the ID of the taxonomy to look up
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |