Class ImmutableHopscotchHashSet<E>

  • Type Parameters:
    E - The element type
    All Implemented Interfaces:
    Iterable<E>, Collection<E>, Set<E>

    public class ImmutableHopscotchHashSet<E>
    extends Object
    implements Set<E>
    Wrap a HopscotchHashMap and allow using it as a Set.
    Since:
    9.3
    Author:
    Dan Berindei
    • Constructor Detail

      • ImmutableHopscotchHashSet

        public ImmutableHopscotchHashSet​(Collection<E> collection)
    • Method Detail

      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • contains

        public boolean contains​(Object o)
      • forEach

        public void forEach​(Consumer<? super E> action)
      • toArray

        public Object[] toArray()
      • toArray

        public <T> T[] toArray​(T[] a)
      • add

        public boolean add​(E e)
      • remove

        public boolean remove​(Object o)
      • containsAll

        public boolean containsAll​(Collection<?> c)
      • addAll

        public boolean addAll​(Collection<? extends E> c)
      • retainAll

        public boolean retainAll​(Collection<?> c)
      • removeAll

        public boolean removeAll​(Collection<?> c)
      • removeIf

        public boolean removeIf​(Predicate<? super E> filter)
      • clear

        public void clear()