cc.mallet.util
Class PropertyList
java.lang.Object
cc.mallet.util.PropertyList
- All Implemented Interfaces:
- java.io.Serializable
public class PropertyList
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
next
protected PropertyList next
key
protected java.lang.String key
PropertyList
protected PropertyList()
PropertyList
protected PropertyList(java.lang.String key,
PropertyList rest)
add
public static PropertyList add(java.lang.String key,
java.lang.Object value,
PropertyList rest)
add
public static PropertyList add(java.lang.String key,
java.lang.String value,
PropertyList rest)
add
public static PropertyList add(java.lang.String key,
double value,
PropertyList rest)
remove
public static PropertyList remove(java.lang.String key,
PropertyList rest)
lookupObject
public java.lang.Object lookupObject(java.lang.String key)
lookupNumber
public double lookupNumber(java.lang.String key)
hasProperty
public boolean hasProperty(java.lang.String key)
iterator
public PropertyList.Iterator iterator()
sumDuplicateKeyValues
public static PropertyList sumDuplicateKeyValues(PropertyList pl)
sumDuplicateKeyValues
public static PropertyList sumDuplicateKeyValues(PropertyList pl,
boolean ignoreZeros)
numericIterator
public PropertyList.Iterator numericIterator()
objectIterator
public PropertyList.Iterator objectIterator()
print
public void print()
size
public int size()
last
public PropertyList last()
append
public PropertyList append(PropertyList nextPl)
throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException