Class ImmutableHopscotchHashSet<E>

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

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

      • ImmutableHopscotchHashSet

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

      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • contains

        public boolean contains​(java.lang.Object o)
      • iterator

        public java.util.Iterator<E> iterator()
      • forEach

        public void forEach​(java.util.function.Consumer<? super E> action)
      • toArray

        public java.lang.Object[] toArray()
      • toArray

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

        public boolean add​(E e)
      • remove

        public boolean remove​(java.lang.Object o)
      • containsAll

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

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

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

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

        public boolean removeIf​(java.util.function.Predicate<? super E> filter)
      • clear

        public void clear()