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 void
add(int i, Object o)
boolean
addAll(int i, Collection col)
boolean
equals(Object o)
Object
get(int i)
int
hashCode()
int
indexOf(Object o)
protected InflatableCollection.InflatedCollection
instantiateCollection()
Factory method used to create a new Collection.int
lastIndexOf(Object o)
ListIterator
listIterator()
ListIterator
listIterator(int i)
Object
remove(int i)
Object
set(int i, Object o)
List
subList(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:
equals
in interfaceCollection
- Specified by:
equals
in interfaceList
- Overrides:
equals
in classInflatableCollection
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection
- Specified by:
hashCode
in interfaceList
- Overrides:
hashCode
in classInflatableCollection
-
addAll
public boolean addAll(int i, Collection col)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList
-
listIterator
public ListIterator listIterator()
- Specified by:
listIterator
in interfaceList
-
listIterator
public ListIterator listIterator(int i)
- Specified by:
listIterator
in interfaceList
-
instantiateCollection
protected InflatableCollection.InflatedCollection instantiateCollection()
Factory method used to create a new Collection. The returned Collection must provide a "safe" iterator.- Specified by:
instantiateCollection
in classInflatableCollection
- Returns:
- a "real" implementation to use if this collection is expanded
-
-