public final class RangeHolder extends AbstractList<Object> implements ListHolder, RandomAccess, Cloneable, Serializable
modCount
Constructor and Description |
---|
RangeHolder(long first,
long last)
Creates new instance of
RangeHolder . |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
contains(Object o) |
Object |
get(int index) |
long |
getFirst()
Returns the first element in this range.
|
String |
getId()
Returns the id of the holder if present.
|
Type |
getItemType()
Returns the type of the items stored in this collection.
|
long |
getLast()
Returns the last element in this range.
|
ValueHolder |
getNotCompiledValueHolder() |
ListType |
getType()
Returns the type of the holder.
|
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
int |
size() |
List<Object> |
subList(int fromIndex,
int toIndex) |
String |
toString() |
add, add, addAll, clear, equals, hashCode, iterator, listIterator, listIterator, remove, removeRange, set
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public RangeHolder(long first, long last)
RangeHolder
.first
- last
- public String toString()
toString
in class AbstractCollection<Object>
public long getFirst()
public long getLast()
public ListType getType()
ValueHolder
getType
in interface ListHolder
getType
in interface ValueHolder
public String getId()
ValueHolder
getId
in interface ValueHolder
public ValueHolder getNotCompiledValueHolder()
getNotCompiledValueHolder
in interface ValueHolder
public Type getItemType()
CollectionHolder
getItemType
in interface CollectionHolder
public Object get(int index)
public int size()
size
in interface Collection<Object>
size
in interface List<Object>
size
in class AbstractCollection<Object>
public boolean contains(Object o)
contains
in interface Collection<Object>
contains
in interface List<Object>
contains
in class AbstractCollection<Object>
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Object>
lastIndexOf
in class AbstractList<Object>
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.