org.jaudiotagger.tag.datatype
Class AbstractValuePair<I,V>

java.lang.Object
  extended by org.jaudiotagger.tag.datatype.AbstractValuePair<I,V>
Direct Known Subclasses:
AbstractIntStringValuePair, AbstractStringStringValuePair

public abstract class AbstractValuePair<I,V>
extends java.lang.Object

A two way mapping between an id and a value


Field Summary
protected  java.util.Map<I,V> idToValue
           
protected  java.util.Iterator<I> iterator
           
protected  java.lang.String value
           
protected  java.util.List<V> valueList
           
protected  java.util.Map<V,I> valueToId
           
 
Constructor Summary
AbstractValuePair()
           
 
Method Summary
 java.util.List<V> getAlphabeticalValueList()
          Get list in alphabetical order
 java.util.Map<I,V> getIdToValueMap()
           
 int getSize()
           
 java.util.Map<V,I> getValueToIdMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idToValue

protected final java.util.Map<I,V> idToValue

valueToId

protected final java.util.Map<V,I> valueToId

valueList

protected final java.util.List<V> valueList

iterator

protected java.util.Iterator<I> iterator

value

protected java.lang.String value
Constructor Detail

AbstractValuePair

public AbstractValuePair()
Method Detail

getAlphabeticalValueList

public java.util.List<V> getAlphabeticalValueList()
Get list in alphabetical order

Returns:

getIdToValueMap

public java.util.Map<I,V> getIdToValueMap()

getValueToIdMap

public java.util.Map<V,I> getValueToIdMap()

getSize

public int getSize()
Returns:
the number of elements in the mapping