Class OptimizedForSingleValueSet<T>

    • Constructor Detail

      • OptimizedForSingleValueSet

        public OptimizedForSingleValueSet()
    • Method Detail

      • add

        public boolean add​(T object)
        Add object to set
        Parameters:
        object - object
        Returns:
        true if object was added to a set
      • remove

        public boolean remove​(T object)
        Remove object from set
        Parameters:
        object - object
        Returns:
        true if object was removed from the set
      • isEmpty

        public boolean isEmpty()
        Returns:
        true if set is empty
      • toArray

        public T[] toArray()
        Returns:
        values as array (not a copy array!)
      • newArray

        protected abstract T[] newArray​(int length)