|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList polyglot.util.TransformingList polyglot.util.CachingTransformingList
public class CachingTransformingList
This subclass of TransformingList applies the transformation to each element of the underlying list at most once.
Field Summary |
---|
Fields inherited from class polyglot.util.TransformingList |
---|
trans, underlying |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
CachingTransformingList(java.util.Collection underlying,
Transformation trans)
|
|
CachingTransformingList(java.util.List underlying,
Transformation trans)
|
Method Summary | |
---|---|
java.lang.Object |
get(int index)
|
Methods inherited from class polyglot.util.TransformingList |
---|
size |
Methods inherited from class java.util.AbstractList |
---|
add, add, addAll, clear, equals, hashCode, 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, toString |
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 |
Constructor Detail |
---|
public CachingTransformingList(java.util.Collection underlying, Transformation trans)
public CachingTransformingList(java.util.List underlying, Transformation trans)
Method Detail |
---|
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class TransformingList
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |