public abstract class ObjectToAbstract<K,V> extends Object implements ObjectTo<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectToAbstract.ManyAbstract<K,V> |
ObjectTo.Many<K,V>| Constructor and Description |
|---|
ObjectToAbstract(Class<K> keyType,
Class<V> valueType,
CollectionProxy<K,V> store,
javax.inject.Provider<Iterable<Map.Entry<K,V>>> iteratorProvider,
Comparator<K> keyComparator,
Comparator<V> valueComparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
ObjectTo<K,V> |
clone(CollectionOptions options) |
Class<?> |
componentType() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Iterable<Map.Entry<K,V>> |
entries() |
protected void |
fillCollection(Collection<V> into) |
protected void |
fillMap(Map<K,V> into) |
V |
get(Object key) |
boolean |
isEmpty() |
Iterable<K> |
keys() |
Class<K> |
keyType() |
protected Collection<V> |
newCollection() |
protected Map<K,V> |
newMap() |
V |
put(Map.Entry<K,V> item) |
void |
putAll(Iterable<Map.Entry<K,V>> items) |
V |
remove(Object key) |
void |
removeAll(Iterable<K> items) |
int |
size() |
V[] |
toArray() |
Collection<V> |
toCollection(Collection<V> into) |
Map<K,V> |
toMap(Map<K,V> into) |
Iterable<V> |
values() |
Class<V> |
valueType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitentryFor, setValuepublic ObjectToAbstract(Class<K> keyType, Class<V> valueType, CollectionProxy<K,V> store, javax.inject.Provider<Iterable<Map.Entry<K,V>>> iteratorProvider, Comparator<K> keyComparator, Comparator<V> valueComparator)
protected Collection<V> newCollection()
public Class<?> componentType()
componentType in interface ObjectTo<K,V>ObjectTo.Many#getValueType() returns IntTopublic Iterable<Map.Entry<K,V>> entries()
entries in interface EntryIterable<K,V>public V[] toArray()
toArray in interface CollectionProxy<K,V>public Collection<V> toCollection(Collection<V> into)
toCollection in interface CollectionProxy<K,V>protected void fillCollection(Collection<V> into)
public ObjectTo<K,V> clone(CollectionOptions options)
clone in interface CollectionProxy<K,V>public boolean containsKey(Object key)
containsKey in interface HasValues<K,V>public boolean containsValue(Object value)
containsValue in interface HasValues<K,V>public int size()
size in interface CollectionProxy<K,V>public void clear()
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.