public class IntToAbstract<V> extends Object implements IntTo<V>
IntTo.IntToIterable<T>, IntTo.IntToIterator<T>, IntTo.Many<T>| Constructor and Description |
|---|
IntToAbstract(CollectionProxy<Integer,V> store,
CollectionOptions opts,
Comparator<V> comparator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V item) |
boolean |
addAll(Iterable<V> items) |
boolean |
addAll(V... items) |
Deque<V> |
asDeque()
If this IntTo is mutable,
you will be getting a DequeProxy, backed by this IntTo.
|
List<V> |
asList()
If this IntTo is mutable,
you will be getting a ListProxy, backed by this IntTo.
|
Set<V> |
asSet()
If this IntTo is mutable,
you will be getting a SetProxy, backed by this IntTo.
|
V |
at(int index) |
void |
clear() |
ObjectTo<Integer,V> |
clone(CollectionOptions options) |
boolean |
contains(V value) |
Map.Entry<Integer,V> |
entryFor(Object key) |
boolean |
findRemove(V value,
boolean all) |
Iterable<V> |
forEach() |
V |
get(Object key) |
int |
indexOf(V value) |
boolean |
insert(int pos,
V item) |
boolean |
isEmpty() |
protected Map.Entry<Integer,V> |
newEntry(int size,
V item) |
V |
pop() |
void |
push(V item) |
V |
put(int key,
V value) |
V |
put(Map.Entry<Integer,V> value) |
boolean |
remove(int index) |
V |
remove(Object key) |
void |
set(int index,
V value) |
void |
setValue(Object key,
Object value) |
int |
size() |
V[] |
toArray() |
Collection<V> |
toCollection(Collection<V> into) |
Map<Integer,V> |
toMap(Map<Integer,V> into) |
public IntToAbstract(CollectionProxy<Integer,V> store, CollectionOptions opts, Comparator<V> comparator)
public int size()
size in interface CollectionProxy<Integer,V>public V[] toArray()
toArray in interface CollectionProxy<Integer,V>public Collection<V> toCollection(Collection<V> into)
toCollection in interface CollectionProxy<Integer,V>public Map<Integer,V> toMap(Map<Integer,V> into)
toMap in interface CollectionProxy<Integer,V>public ObjectTo<Integer,V> clone(CollectionOptions options)
clone in interface CollectionProxy<Integer,V>public boolean findRemove(V value, boolean all)
findRemove in interface IntTo<V>public List<V> asList()
IntToIf this IntTo is immutable, you are getting an ArrayList you can mutate as you wish.
public Set<V> asSet()
IntTopublic Deque<V> asDeque()
IntTopublic V put(Map.Entry<Integer,V> value)
put in interface CollectionProxy<Integer,V>public boolean isEmpty()
isEmpty in interface CollectionProxy<Integer,V>public void clear()
clear in interface CollectionProxy<Integer,V>public Map.Entry<Integer,V> entryFor(Object key)
entryFor in interface CollectionProxy<Integer,V>public void setValue(Object key, Object value)
setValue in interface CollectionProxy<Integer,V>Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.