net.openhft.collect.set.hash
Class HashObjSets

java.lang.Object
  extended by net.openhft.collect.set.hash.HashObjSets

public final class HashObjSets
extends Object

This class consists only of static factory methods to construct HashObjSets, and the default HashObjSetFactory static provider (getDefaultFactory()).

See Also:
HashObjSet

Method Summary
static HashObjSetFactory<Object> getDefaultFactory()
           
static
<E> HashObjSet<E>
newImmutableSet(Consumer<Consumer<E>> elementsSupplier)
           
static
<E> HashObjSet<E>
newImmutableSet(Consumer<Consumer<E>> elementsSupplier, int expectedSize)
           
static
<E> HashObjSet<E>
newImmutableSet(E[] elements)
           
static
<E> HashObjSet<E>
newImmutableSet(E[] elements, int expectedSize)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elements)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elements, int expectedSize)
          If the specified elements is a set and has the same equivalence with this factory, expectedSize is ignored.
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, int expectedSize)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, int expectedSize)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, int expectedSize)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, Iterable<? extends E> elems5)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, Iterable<? extends E> elems5, int expectedSize)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterator<? extends E> elements)
           
static
<E> HashObjSet<E>
newImmutableSet(Iterator<? extends E> elements, int expectedSize)
           
static
<E> HashObjSet<E>
newImmutableSetOf(E e1)
           
static
<E> HashObjSet<E>
newImmutableSetOf(E e1, E e2)
           
static
<E> HashObjSet<E>
newImmutableSetOf(E e1, E e2, E e3)
           
static
<E> HashObjSet<E>
newImmutableSetOf(E e1, E e2, E e3, E e4)
           
static
<E> HashObjSet<E>
newImmutableSetOf(E e1, E e2, E e3, E e4, E e5, E... restElements)
           
static
<E> HashObjSet<E>
newMutableSet()
           
static
<E> HashObjSet<E>
newMutableSet(Consumer<Consumer<E>> elementsSupplier)
           
static
<E> HashObjSet<E>
newMutableSet(Consumer<Consumer<E>> elementsSupplier, int expectedSize)
           
static
<E> HashObjSet<E>
newMutableSet(E[] elements)
           
static
<E> HashObjSet<E>
newMutableSet(E[] elements, int expectedSize)
           
static
<E> HashObjSet<E>
newMutableSet(int expectedSize)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elements)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elements, int expectedSize)
          If the specified elements is a set and has the same equivalence with this factory, expectedSize is ignored.
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, int expectedSize)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, int expectedSize)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, int expectedSize)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, Iterable<? extends E> elems5)
           
static
<E> HashObjSet<E>
newMutableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, Iterable<? extends E> elems5, int expectedSize)
           
static
<E> HashObjSet<E>
newMutableSet(Iterator<? extends E> elements)
           
static
<E> HashObjSet<E>
newMutableSet(Iterator<? extends E> elements, int expectedSize)
           
static
<E> HashObjSet<E>
newMutableSetOf(E e1)
           
static
<E> HashObjSet<E>
newMutableSetOf(E e1, E e2)
           
static
<E> HashObjSet<E>
newMutableSetOf(E e1, E e2, E e3)
           
static
<E> HashObjSet<E>
newMutableSetOf(E e1, E e2, E e3, E e4)
           
static
<E> HashObjSet<E>
newMutableSetOf(E e1, E e2, E e3, E e4, E e5, E... restElements)
           
static
<E> HashObjSet<E>
newUpdatableSet(Consumer<Consumer<E>> elementsSupplier)
           
static
<E> HashObjSet<E>
newUpdatableSet(Consumer<Consumer<E>> elementsSupplier, int expectedSize)
           
static
<E> HashObjSet<E>
newUpdatableSet(E[] elements)
           
static
<E> HashObjSet<E>
newUpdatableSet(E[] elements, int expectedSize)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elements)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elements, int expectedSize)
          If the specified elements is a set and has the same equivalence with this factory, expectedSize is ignored.
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, int expectedSize)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, int expectedSize)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, int expectedSize)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, Iterable<? extends E> elems5)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterable<? extends E> elems1, Iterable<? extends E> elems2, Iterable<? extends E> elems3, Iterable<? extends E> elems4, Iterable<? extends E> elems5, int expectedSize)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterator<? extends E> elements)
           
static
<E> HashObjSet<E>
newUpdatableSet(Iterator<? extends E> elements, int expectedSize)
           
static
<E> HashObjSet<E>
newUpdatableSetOf(E e1)
           
static
<E> HashObjSet<E>
newUpdatableSetOf(E e1, E e2)
           
static
<E> HashObjSet<E>
newUpdatableSetOf(E e1, E e2, E e3)
           
static
<E> HashObjSet<E>
newUpdatableSetOf(E e1, E e2, E e3, E e4)
           
static
<E> HashObjSet<E>
newUpdatableSetOf(E e1, E e2, E e3, E e4, E e5, E... restElements)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultFactory

public static HashObjSetFactory<Object> getDefaultFactory()

newMutableSet

public static <E> HashObjSet<E> newMutableSet()

newMutableSet

public static <E> HashObjSet<E> newMutableSet(int expectedSize)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elements,
                                              int expectedSize)
If the specified elements is a set and has the same equivalence with this factory, expectedSize is ignored.


newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elems1,
                                              Iterable<? extends E> elems2,
                                              int expectedSize)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elems1,
                                              Iterable<? extends E> elems2,
                                              Iterable<? extends E> elems3,
                                              int expectedSize)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elems1,
                                              Iterable<? extends E> elems2,
                                              Iterable<? extends E> elems3,
                                              Iterable<? extends E> elems4,
                                              int expectedSize)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elems1,
                                              Iterable<? extends E> elems2,
                                              Iterable<? extends E> elems3,
                                              Iterable<? extends E> elems4,
                                              Iterable<? extends E> elems5,
                                              int expectedSize)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elements)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elems1,
                                              Iterable<? extends E> elems2)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elems1,
                                              Iterable<? extends E> elems2,
                                              Iterable<? extends E> elems3)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elems1,
                                              Iterable<? extends E> elems2,
                                              Iterable<? extends E> elems3,
                                              Iterable<? extends E> elems4)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterable<? extends E> elems1,
                                              Iterable<? extends E> elems2,
                                              Iterable<? extends E> elems3,
                                              Iterable<? extends E> elems4,
                                              Iterable<? extends E> elems5)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterator<? extends E> elements)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Iterator<? extends E> elements,
                                              int expectedSize)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Consumer<Consumer<E>> elementsSupplier)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(Consumer<Consumer<E>> elementsSupplier,
                                              int expectedSize)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(E[] elements)

newMutableSet

public static <E> HashObjSet<E> newMutableSet(E[] elements,
                                              int expectedSize)

newMutableSetOf

public static <E> HashObjSet<E> newMutableSetOf(E e1)

newMutableSetOf

public static <E> HashObjSet<E> newMutableSetOf(E e1,
                                                E e2)

newMutableSetOf

public static <E> HashObjSet<E> newMutableSetOf(E e1,
                                                E e2,
                                                E e3)

newMutableSetOf

public static <E> HashObjSet<E> newMutableSetOf(E e1,
                                                E e2,
                                                E e3,
                                                E e4)

newMutableSetOf

public static <E> HashObjSet<E> newMutableSetOf(E e1,
                                                E e2,
                                                E e3,
                                                E e4,
                                                E e5,
                                                E... restElements)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elements,
                                                int expectedSize)
If the specified elements is a set and has the same equivalence with this factory, expectedSize is ignored.


newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                int expectedSize)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                int expectedSize)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                Iterable<? extends E> elems4,
                                                int expectedSize)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                Iterable<? extends E> elems4,
                                                Iterable<? extends E> elems5,
                                                int expectedSize)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elements)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                Iterable<? extends E> elems4)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                Iterable<? extends E> elems4,
                                                Iterable<? extends E> elems5)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterator<? extends E> elements)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Iterator<? extends E> elements,
                                                int expectedSize)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Consumer<Consumer<E>> elementsSupplier)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(Consumer<Consumer<E>> elementsSupplier,
                                                int expectedSize)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(E[] elements)

newUpdatableSet

public static <E> HashObjSet<E> newUpdatableSet(E[] elements,
                                                int expectedSize)

newUpdatableSetOf

public static <E> HashObjSet<E> newUpdatableSetOf(E e1)

newUpdatableSetOf

public static <E> HashObjSet<E> newUpdatableSetOf(E e1,
                                                  E e2)

newUpdatableSetOf

public static <E> HashObjSet<E> newUpdatableSetOf(E e1,
                                                  E e2,
                                                  E e3)

newUpdatableSetOf

public static <E> HashObjSet<E> newUpdatableSetOf(E e1,
                                                  E e2,
                                                  E e3,
                                                  E e4)

newUpdatableSetOf

public static <E> HashObjSet<E> newUpdatableSetOf(E e1,
                                                  E e2,
                                                  E e3,
                                                  E e4,
                                                  E e5,
                                                  E... restElements)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elements,
                                                int expectedSize)
If the specified elements is a set and has the same equivalence with this factory, expectedSize is ignored.


newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                int expectedSize)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                int expectedSize)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                Iterable<? extends E> elems4,
                                                int expectedSize)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                Iterable<? extends E> elems4,
                                                Iterable<? extends E> elems5,
                                                int expectedSize)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elements)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                Iterable<? extends E> elems4)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterable<? extends E> elems1,
                                                Iterable<? extends E> elems2,
                                                Iterable<? extends E> elems3,
                                                Iterable<? extends E> elems4,
                                                Iterable<? extends E> elems5)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterator<? extends E> elements)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Iterator<? extends E> elements,
                                                int expectedSize)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Consumer<Consumer<E>> elementsSupplier)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(Consumer<Consumer<E>> elementsSupplier,
                                                int expectedSize)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(E[] elements)

newImmutableSet

public static <E> HashObjSet<E> newImmutableSet(E[] elements,
                                                int expectedSize)

newImmutableSetOf

public static <E> HashObjSet<E> newImmutableSetOf(E e1)

newImmutableSetOf

public static <E> HashObjSet<E> newImmutableSetOf(E e1,
                                                  E e2)

newImmutableSetOf

public static <E> HashObjSet<E> newImmutableSetOf(E e1,
                                                  E e2,
                                                  E e3)

newImmutableSetOf

public static <E> HashObjSet<E> newImmutableSetOf(E e1,
                                                  E e2,
                                                  E e3,
                                                  E e4)

newImmutableSetOf

public static <E> HashObjSet<E> newImmutableSetOf(E e1,
                                                  E e2,
                                                  E e3,
                                                  E e4,
                                                  E e5,
                                                  E... restElements)