com.threerings.stats.data
Class ByteByteStringMapStat
java.lang.Object
com.threerings.stats.data.Stat
com.threerings.stats.data.StringMapStat
com.threerings.stats.data.ByteByteStringMapStat
- All Implemented Interfaces:
- Streamable, DSet.Entry, Cloneable
public class ByteByteStringMapStat
- extends StringMapStat
Maps up to 127 string values to integers in the range 0 - 127.
| Methods inherited from class com.threerings.stats.data.Stat |
clone, crc32, getCode, getKey, getModCount, getType, getType, initType, isModified, setModCount, setModified, toString |
ByteByteStringMapStat
public ByteByteStringMapStat()
persistTo
public void persistTo(ObjectOutputStream out,
Stat.AuxDataSource aux)
throws IOException
- Description copied from class:
Stat
- Serializes this instance for storage in the item database. Derived classes must override
this method to implement persistence.
- Specified by:
persistTo in class Stat
- Throws:
IOException
unpersistFrom
public void unpersistFrom(ObjectInputStream in,
Stat.AuxDataSource aux)
throws IOException,
ClassNotFoundException
- Description copied from class:
Stat
- Unserializes this item from data obtained from the item database. Derived classes must
override this method to implement persistence.
- Specified by:
unpersistFrom in class Stat
- Throws:
IOException
ClassNotFoundException
getMaxValue
protected int getMaxValue()
- Description copied from class:
StringMapStat
- Returns the maximum value to which we'll allow our strings to map (to avoid overflowing our
underlying data types and to avoid accumulating forever when we don't really care).
- Specified by:
getMaxValue in class StringMapStat