org.jaudiotagger.tag.datatype
Class AbstractIntStringValuePair

java.lang.Object
  extended by org.jaudiotagger.tag.datatype.AbstractValuePair<java.lang.Integer,java.lang.String>
      extended by org.jaudiotagger.tag.datatype.AbstractIntStringValuePair
Direct Known Subclasses:
ChannelTypes, EventTimingTimestampTypes, EventTimingTypes, GenreTypes, InterpolationTypes, PictureTypes, ReceivedAsTypes, SynchronisedLyricsContentType, TextEncoding

public class AbstractIntStringValuePair
extends AbstractValuePair<java.lang.Integer,java.lang.String>

A two way mapping between an Integral Id and a String value


Field Summary
protected  java.lang.Integer key
           
 
Fields inherited from class org.jaudiotagger.tag.datatype.AbstractValuePair
idToValue, iterator, value, valueList, valueToId
 
Constructor Summary
AbstractIntStringValuePair()
           
 
Method Summary
protected  void createMaps()
           
 java.lang.Integer getIdForValue(java.lang.String value)
          Get Id for Value
 java.lang.String getValueForId(int id)
          Get value for Id
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractValuePair
getAlphabeticalValueList, getIdToValueMap, getSize, getValueToIdMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected java.lang.Integer key
Constructor Detail

AbstractIntStringValuePair

public AbstractIntStringValuePair()
Method Detail

getIdForValue

public java.lang.Integer getIdForValue(java.lang.String value)
Get Id for Value

Parameters:
value -
Returns:

getValueForId

public java.lang.String getValueForId(int id)
Get value for Id

Parameters:
id -
Returns:

createMaps

protected void createMaps()