Class 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 Detail

      • valuesDelegate

        final java.util.Set<V> valuesDelegate
    • Constructor Detail

      • ValueSet

        private ValueSet()
    • 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 as ForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.
        Specified by:
        delegate in class ForwardingSet<V>
      • iterator

        public java.util.Iterator<V> iterator()
        Specified by:
        iterator in interface java.util.Collection<V>
        Specified by:
        iterator in interface java.lang.Iterable<V>
        Specified by:
        iterator in interface java.util.Set<V>
        Overrides:
        iterator in class ForwardingCollection<V>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<V>
        Specified by:
        toArray in interface java.util.Set<V>
        Overrides:
        toArray in class ForwardingCollection<V>
      • toArray

        public <T> T[] toArray​(T[] array)
        Specified by:
        toArray in interface java.util.Collection<V>
        Specified by:
        toArray in interface java.util.Set<V>
        Overrides:
        toArray in class ForwardingCollection<V>
      • toString

        public java.lang.String toString()
        Description copied from class: ForwardingObject
        Returns the string representation generated by the delegate's toString method.
        Overrides:
        toString in class ForwardingObject