Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PropertyList.Iterator
class
PropertyList.NumericIterator
class
PropertyList.ObjectIterator
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
key
protected PropertyList
next
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropertyList()
protected
PropertyList(java.lang.String key, PropertyList rest)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyList
add(java.lang.String key, double value, PropertyList rest)
static PropertyList
add(java.lang.String key, java.lang.Object value, PropertyList rest)
static PropertyList
add(java.lang.String key, java.lang.String value, PropertyList rest)
PropertyList
append(PropertyList nextPl)
boolean
hasProperty(java.lang.String key)
PropertyList.Iterator
iterator()
PropertyList
last()
double
lookupNumber(java.lang.String key)
java.lang.Object
lookupObject(java.lang.String key)
PropertyList.Iterator
numericIterator()
PropertyList.Iterator
objectIterator()
void
print()
static PropertyList
remove(java.lang.String key, PropertyList rest)
int
size()
static PropertyList
sumDuplicateKeyValues(PropertyList pl)
static PropertyList
sumDuplicateKeyValues(PropertyList pl, boolean ignoreZeros)
-
-
-
Field Detail
-
next
protected PropertyList next
-
key
protected java.lang.String key
-
-
Constructor Detail
-
PropertyList
protected PropertyList()
-
PropertyList
protected PropertyList(java.lang.String key, PropertyList rest)
-
-
Method Detail
-
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
-
-