Package com.tangosol.util
Class InflatableList
- java.lang.Object
-
- java.util.AbstractCollection
-
- com.tangosol.util.InflatableCollection
-
- com.tangosol.util.InflatableList
-
- All Implemented Interfaces:
Iterable,Collection,List
public class InflatableList extends InflatableCollection implements List
A List specialization of InflatableCollection.- Since:
- Coherence 3.6
- Author:
- ch 2009.11.22
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.InflatableCollection
InflatableCollection.InflatedCollection
-
-
Field Summary
-
Fields inherited from class com.tangosol.util.InflatableCollection
m_oValue, NO_VALUE, VALUE_UPDATER
-
-
Constructor Summary
Constructors Constructor Description InflatableList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, Object o)booleanaddAll(int i, Collection col)booleanequals(Object o)Objectget(int i)inthashCode()intindexOf(Object o)protected InflatableCollection.InflatedCollectioninstantiateCollection()Factory method used to create a new Collection.intlastIndexOf(Object o)ListIteratorlistIterator()ListIteratorlistIterator(int i)Objectremove(int i)Objectset(int i, Object o)ListsubList(int iFrom, int iTo)-
Methods inherited from class com.tangosol.util.InflatableCollection
add, clear, contains, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection- Specified by:
equalsin interfaceList- Overrides:
equalsin classInflatableCollection
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection- Specified by:
hashCodein interfaceList- Overrides:
hashCodein classInflatableCollection
-
addAll
public boolean addAll(int i, Collection col)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList
-
listIterator
public ListIterator listIterator()
- Specified by:
listIteratorin interfaceList
-
listIterator
public ListIterator listIterator(int i)
- Specified by:
listIteratorin interfaceList
-
instantiateCollection
protected InflatableCollection.InflatedCollection instantiateCollection()
Factory method used to create a new Collection. The returned Collection must provide a "safe" iterator.- Specified by:
instantiateCollectionin classInflatableCollection- Returns:
- a "real" implementation to use if this collection is expanded
-
-