Class ForwardingMap.StandardValues

    • Constructor Detail

      • StandardValues

        public StandardValues()
        Constructor for use by subclasses.
    • Method Detail

      • forEach

        public void forEach​(Consumer<? super V> action)
        Description copied from interface: java.lang.Iterable
        Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. Actions are performed in the order of iteration, if that order is specified. Exceptions thrown by the action are relayed to the caller.

        The behavior of this method is unspecified if the action performs side-effects that modify the underlying source of elements, unless an overriding class has specified a concurrent modification policy.

        action - The action to be performed for each element
      • remove

        public boolean remove​(Object o)
        Description copied from class: java.util.AbstractCollection
        Removes a single instance of the specified element from this collection, if it is present (optional operation). More formally, removes an element e such that Objects.equals(o, e), if this collection contains one or more such elements. Returns true if this collection contained the specified element (or equivalently, if this collection changed as a result of the call).
        Specified by:
        remove in interface Collection<K>
        remove in class AbstractCollection<V>
        o - element to be removed from this collection, if present
        true if an element was removed as a result of this call
      • size

        public int size()
        Description copied from interface: java.util.Collection
        Returns the number of elements in this collection. If this collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
        Specified by:
        size in interface Collection<K>
        Specified by:
        size in class AbstractCollection<V>
        the number of elements in this collection
      • contains

        public boolean contains​(@Nullable Object o)
        Description copied from class: java.util.AbstractCollection
        Returns true if this collection contains the specified element. More formally, returns true if and only if this collection contains at least one element e such that Objects.equals(o, e).
        Specified by:
        contains in interface Collection<K>
        contains in class AbstractCollection<V>
        o - element whose presence in this collection is to be tested
        true if this collection contains the specified element