Package org.eclipse.sisu.wire
Class EntrySetAdapter<V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<V>
-
- org.eclipse.sisu.wire.EntrySetAdapter<V>
-
- All Implemented Interfaces:
java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.Set<V>
public final class EntrySetAdapter<V> extends java.util.AbstractSet<V>
Set
backed by anIterable
sequence of map entries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
EntrySetAdapter.ValueIterator<V>
ValueIterator
backed by a Key:ValueIterator
.
-
Constructor Summary
Constructors Constructor Description EntrySetAdapter(java.lang.Iterable<? extends java.util.Map.Entry<?,V>> iterable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmpty()
java.util.Iterator<V>
iterator()
int
size()
-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, remove, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
iterable
private final java.lang.Iterable<? extends java.util.Map.Entry<?,V>> iterable
-
-
Constructor Detail
-
EntrySetAdapter
public EntrySetAdapter(java.lang.Iterable<? extends java.util.Map.Entry<?,V>> iterable)
-
-
Method Detail
-
iterator
public java.util.Iterator<V> iterator()
-
isEmpty
public boolean isEmpty()
-
-