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:
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.


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

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.