org.sonatype.guice.bean.locators
Class EntryListAdapter<K,V>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<V>
org.sonatype.guice.bean.locators.EntryListAdapter<K,V>
- All Implemented Interfaces:
- java.lang.Iterable<V>, java.util.Collection<V>, java.util.List<V>
public final class EntryListAdapter<K,V>
- extends java.util.AbstractSequentialList<V>
List
backed by an Iterable
sequence of map entries.
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary |
EntryListAdapter(java.lang.Iterable<? extends java.util.Map.Entry<K,V>> iterable)
|
Methods inherited from class java.util.AbstractSequentialList |
add, addAll, get, remove, set |
Methods inherited from class java.util.AbstractList |
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray |
EntryListAdapter
public EntryListAdapter(java.lang.Iterable<? extends java.util.Map.Entry<K,V>> iterable)
iterator
public java.util.Iterator<V> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<V>
- Specified by:
iterator
in interface java.util.Collection<V>
- Specified by:
iterator
in interface java.util.List<V>
- Overrides:
iterator
in class java.util.AbstractSequentialList<V>
listIterator
public java.util.ListIterator<V> listIterator(int index)
- Specified by:
listIterator
in interface java.util.List<V>
- Specified by:
listIterator
in class java.util.AbstractSequentialList<V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection<V>
- Specified by:
isEmpty
in interface java.util.List<V>
- Overrides:
isEmpty
in class java.util.AbstractCollection<V>
size
public int size()
- Specified by:
size
in interface java.util.Collection<V>
- Specified by:
size
in interface java.util.List<V>
- Specified by:
size
in class java.util.AbstractCollection<V>
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.