Class AbstractShortCollection

    • Constructor Detail

      • AbstractShortCollection

        AbstractShortCollection()
    • Method Detail

      • retainAll

        public int retainAll​(ShortLookupContainer c)
        Default implementation uses a predicate for retaining.
        Specified by:
        retainAll in interface ShortCollection
        Returns:
        Returns the number of removed elements.
      • toArray

        public short[] toArray()
        Default implementation of copying to an array.
        Specified by:
        toArray in interface ShortContainer
      • toString

        public java.lang.String toString()
        Convert the contents of this container to a human-friendly string.
        Overrides:
        toString in class java.lang.Object