com.threerings.stats.data
Class ByteByteStringMapStat

java.lang.Object
  extended by com.threerings.stats.data.Stat
      extended by com.threerings.stats.data.StringMapStat
          extended by com.threerings.stats.data.ByteByteStringMapStat
All Implemented Interfaces:
com.threerings.io.Streamable, com.threerings.presents.dobj.DSet.Entry, Cloneable

public class ByteByteStringMapStat
extends StringMapStat

Maps up to 127 string values to integers in the range 0 - 127.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.stats.data.Stat
Stat.AuxDataSource, Stat.Type
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
ByteByteStringMapStat()
           
 
Method Summary
 void persistTo(com.threerings.io.ObjectOutputStream out, Stat.AuxDataSource aux)
          Serializes this instance for storage in the item database.
 void unpersistFrom(com.threerings.io.ObjectInputStream in, Stat.AuxDataSource aux)
          Unserializes this item from data obtained from the item database.
 
Methods inherited from class com.threerings.stats.data.StringMapStat
containsKey, get, increment, put, valueToString
 
Methods inherited from class com.threerings.stats.data.Stat
clone, getCode, getKey, getModCount, getType, getType, initType, isModified, setModCount, setModified, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteByteStringMapStat

public ByteByteStringMapStat()
Method Detail

persistTo

public void persistTo(com.threerings.io.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(com.threerings.io.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


Copyright © 2011. All Rights Reserved.