public abstract class StringSetStat extends SetStat<String>
Stat.AuxDataSource, Stat.Type| Constructor and Description |
|---|
StringSetStat() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, crc32, getCode, getKey, getModCount, getType, getType, initType, isModified, persistTo, setModCount, setModified, toString, unpersistFrompublic int size()
public boolean contains(String key)
public boolean add(String key)
public String[] values()
public String valueToString()
StatStat.toString() and to display the value in game.valueToString in class StatCopyright © 2015. All rights reserved.