org.sonatype.guice.bean.locators
Class EntryListAdapter<K,V>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<V>
              extended by org.sonatype.guice.bean.locators.EntryListAdapter<K,V>
All Implemented Interfaces:
Iterable<V>, Collection<V>, List<V>

public final class EntryListAdapter<K,V>
extends AbstractSequentialList<V>

List backed by an Iterable sequence of map entries.


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EntryListAdapter(Iterable<? extends Map.Entry<K,V>> iterable)
           
 
Method Summary
 boolean isEmpty()
           
 Iterator<V> iterator()
           
 ListIterator<V> listIterator(int index)
           
 int size()
           
 
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
 

Constructor Detail

EntryListAdapter

public EntryListAdapter(Iterable<? extends Map.Entry<K,V>> iterable)
Method Detail

iterator

public Iterator<V> iterator()
Specified by:
iterator in interface Iterable<V>
Specified by:
iterator in interface Collection<V>
Specified by:
iterator in interface List<V>
Overrides:
iterator in class AbstractSequentialList<V>

listIterator

public ListIterator<V> listIterator(int index)
Specified by:
listIterator in interface List<V>
Specified by:
listIterator in class AbstractSequentialList<V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<V>
Specified by:
isEmpty in interface List<V>
Overrides:
isEmpty in class AbstractCollection<V>

size

public int size()
Specified by:
size in interface Collection<V>
Specified by:
size in interface List<V>
Specified by:
size in class AbstractCollection<V>


Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.