info.aduna.gee.spectacle.gee
Class MetaValueList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by info.aduna.gee.spectacle.gee.MetaValueList
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class MetaValueList
extends ArrayList

A sorted collection of meta names plus their values. Although it extends ArrayList, the objects in the list are opaque.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MetaValueList()
           
 
Method Summary
 void add(String meta, PathString values)
           
 int getLastMetaIndex(String meta)
           
 String getMeta(int l)
           
 int getMetaIndex(String meta)
           
 List<String> getMetas(boolean sort)
           
 PathString getPath()
           
 PathString getValues(int l)
           
 void set(int l, String meta, PathString values)
           
 List subList(int fromIndex, int toIndex)
          Implementation note: we want subList to have the same type.
 String toString()
          Override List's toString().
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll
 

Constructor Detail

MetaValueList

public MetaValueList()
Method Detail

add

public void add(String meta,
                PathString values)

set

public void set(int l,
                String meta,
                PathString values)

getMeta

public String getMeta(int l)

getMetaIndex

public int getMetaIndex(String meta)
Returns:
the lowest index corresponding to meta or -1

getLastMetaIndex

public int getLastMetaIndex(String meta)
Returns:
the highest index corresponding to meta or -1

getValues

public PathString getValues(int l)

getPath

public PathString getPath()

getMetas

public List<String> getMetas(boolean sort)

subList

public List subList(int fromIndex,
                    int toIndex)
Implementation note: we want subList to have the same type.

Specified by:
subList in interface List
Overrides:
subList in class AbstractList

toString

public String toString()
Override List's toString().

Overrides:
toString in class AbstractCollection


Copyright © 1997-2008 Aduna. All Rights Reserved.