org.apache.hivemind.impl
Class ElementsInnerProxyList

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by org.apache.hivemind.impl.ElementsInnerProxyList
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.List

public final class ElementsInnerProxyList
extends java.util.AbstractList

Implements a List as a proxy to an actual list of elements, provided by an extension point. The proxy is unmodifiable and will work with the extension point to generate the real list of elements in a just-in-time manner.

Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object get(int index)
           
 int hashCode()
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Method Detail

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List
Specified by:
get in class java.util.AbstractList

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.List
Specified by:
size in class java.util.AbstractCollection

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection
Specified by:
equals in interface java.util.List
Overrides:
equals in class java.util.AbstractList

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection
Specified by:
hashCode in interface java.util.List
Overrides:
hashCode in class java.util.AbstractList

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection