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 and Description classPropertyList.IteratorclassPropertyList.NumericIteratorclassPropertyList.ObjectIterator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static PropertyListadd(java.lang.String key, double value, PropertyList rest)static PropertyListadd(java.lang.String key, java.lang.Object value, PropertyList rest)static PropertyListadd(java.lang.String key, java.lang.String value, PropertyList rest)PropertyListappend(PropertyList nextPl)booleanhasProperty(java.lang.String key)PropertyList.Iteratoriterator()PropertyListlast()doublelookupNumber(java.lang.String key)java.lang.ObjectlookupObject(java.lang.String key)PropertyList.IteratornumericIterator()PropertyList.IteratorobjectIterator()voidprint()static PropertyListremove(java.lang.String key, PropertyList rest)intsize()static PropertyListsumDuplicateKeyValues(PropertyList pl)static PropertyListsumDuplicateKeyValues(PropertyList pl, boolean ignoreZeros)
-
-
-
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG