|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.stats.data.Stat
com.threerings.stats.data.SetStat<String>
com.threerings.stats.data.StringSetStat
public abstract class StringSetStat
Used to track a statistic comprised of a set of strings.
| 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 | |
|---|---|
StringSetStat()
|
|
| Method Summary | |
|---|---|
boolean |
add(String key)
Adds the specified string to this set. |
boolean |
contains(String key)
Returns true if the specified string is contained in this set. |
int |
size()
Returns the number of Strings in this set. |
String[] |
values()
Returns the values in this set. |
String |
valueToString()
Derived statistics must override this method and render their value to a string. |
| Methods inherited from class com.threerings.stats.data.Stat |
|---|
clone, getCode, getKey, getModCount, getType, getType, initType, isModified, persistTo, setModCount, setModified, toString, unpersistFrom |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringSetStat()
| Method Detail |
|---|
public int size()
size in class SetStat<String>public boolean contains(String key)
contains in class SetStat<String>public boolean add(String key)
add in class SetStat<String>public String[] values()
public String valueToString()
StatStat.toString() and to display the value in game.
valueToString in class Stat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||