edu.umass.cs.mallet.base.util
Class PropertyList

java.lang.Object
  extended byedu.umass.cs.mallet.base.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
 class PropertyList.Iterator
           
 class PropertyList.NumericIterator
           
 class PropertyList.ObjectIterator
           
 
Field Summary
protected  java.lang.String key
           
protected  PropertyList next
           
 
Constructor Summary
protected PropertyList()
           
protected PropertyList(java.lang.String key, PropertyList rest)
           
 
Method Summary
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)
           
 boolean hasProperty(java.lang.String key)
           
 PropertyList.Iterator iterator()
           
 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)
           
static PropertyList sumDuplicateKeyValues(PropertyList pl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

numericIterator

public PropertyList.Iterator numericIterator()

objectIterator

public PropertyList.Iterator objectIterator()

print

public void print()