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

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<V>
          extended by org.sonatype.guice.bean.locators.EntrySetAdapter<K,V>
All Implemented Interfaces:
Iterable<V>, Collection<V>, Set<V>

public final class EntrySetAdapter<K,V>
extends AbstractSet<V>

Set backed by an Iterable sequence of map entries.


Constructor Summary
EntrySetAdapter(Iterable<? extends Map.Entry<K,V>> iterable)
           
 
Method Summary
 boolean isEmpty()
           
 Iterator<V> iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, remove, 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.Set
add, addAll, clear, contains, containsAll, remove, retainAll, toArray, toArray
 

Constructor Detail

EntrySetAdapter

public EntrySetAdapter(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 Set<V>
Specified by:
iterator in class AbstractCollection<V>

isEmpty

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

size

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


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