Package com.google.common.collect
Class AbstractBiMap.ValueSet
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingSet<V>
-
- com.google.common.collect.AbstractBiMap.ValueSet
-
- All Implemented Interfaces:
java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.Set<V>
- Enclosing class:
- AbstractBiMap<K,V>
private class AbstractBiMap.ValueSet extends ForwardingSet<V>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Set<V>
valuesDelegate
-
Constructor Summary
Constructors Modifier Constructor Description private
ValueSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<V>
delegate()
Returns the backing delegate instance that methods are forwarded to.java.util.Iterator<V>
iterator()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] array)
java.lang.String
toString()
Returns the string representation generated by the delegate'stoString
method.-
Methods inherited from class com.google.common.collect.ForwardingSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
-
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString
-
-
-
-
Field Detail
-
valuesDelegate
final java.util.Set<V> valuesDelegate
-
-
Method Detail
-
delegate
protected java.util.Set<V> delegate()
Description copied from class:ForwardingObject
Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate()
. Concrete subclasses override this method to supply the instance being decorated.- Specified by:
delegate
in classForwardingSet<V>
-
iterator
public java.util.Iterator<V> iterator()
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<V>
- Specified by:
toArray
in interfacejava.util.Set<V>
- Overrides:
toArray
in classForwardingCollection<V>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArray
in interfacejava.util.Collection<V>
- Specified by:
toArray
in interfacejava.util.Set<V>
- Overrides:
toArray
in classForwardingCollection<V>
-
toString
public java.lang.String toString()
Description copied from class:ForwardingObject
Returns the string representation generated by the delegate'stoString
method.- Overrides:
toString
in classForwardingObject
-
-