org.jaudiotagger.tag.datatype
Class AbstractIntStringValuePair

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

public class AbstractIntStringValuePair
extends AbstractValuePair

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


Constructor Summary
AbstractIntStringValuePair()
           
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIntStringValuePair

public AbstractIntStringValuePair()
Method Detail

getIdForValue

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


getValueForId

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