Package com.complexible.common.hppc
Class CarrotUtil
java.lang.Object
com.complexible.common.hppc.CarrotUtil
Collection of utility methods for working with the Carrot Labs HPPC API
- Since:
- 0.4.8
- Version:
- 4.1
- Author:
- Michael Grove
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.carrotsearch.hppc.LongSetstatic final long -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAll(com.carrotsearch.hppc.IntSet theContainer, com.carrotsearch.hppc.IntContainer theIntsToAdd) static voidaddAll(com.carrotsearch.hppc.LongSet theSet, com.carrotsearch.hppc.LongSet toAdd) static com.carrotsearch.hppc.procedures.LongIntProcedureaddAllProcedure(com.carrotsearch.hppc.LongIntHashMap toMap) static com.carrotsearch.hppc.IntIntMapcopy(com.carrotsearch.hppc.IntIntMap theMap) static com.carrotsearch.hppc.IntIntMap[]copy(com.carrotsearch.hppc.IntIntMap[] theMap) static com.carrotsearch.hppc.LongSetimmutable(com.carrotsearch.hppc.LongSet theSet) static com.carrotsearch.hppc.IntSetintSet()static <T> Iterable<T> iterable(com.carrotsearch.hppc.ObjectContainer<T> theContainer) static <T> Iterator<T> static intmax(com.carrotsearch.hppc.IntContainer theContainer) static com.carrotsearch.hppc.IntIntHashMapnewIntIntOpenHashMap(int... theKeyOrValue) static <T> com.carrotsearch.hppc.IntObjectMap<T> static <T> com.carrotsearch.hppc.IntObjectMap<T> newIntObjectMap(int theKey, T theValue) static com.carrotsearch.hppc.LongIntHashMapnewLongIntOpenHashMap(long... theKeyOrValue) static com.carrotsearch.hppc.LongLongHashMapnewLongLongOpenHashMap(long... theKeyOrValue) static <T> com.carrotsearch.hppc.LongObjectMap<T> static <T> com.carrotsearch.hppc.ObjectLongMap<T> static voidputAll(com.carrotsearch.hppc.IntIntMap theMap, com.carrotsearch.hppc.IntIntMap theOtherMap) static <T> voidputAll(com.carrotsearch.hppc.IntObjectMap<T> theMap, com.carrotsearch.hppc.IntObjectMap<T> theOtherMap) static com.carrotsearch.hppc.LongSetsingleton(long theLong)
-
Field Details
-
LONG_LONG_NO_ENTRY
public static final long LONG_LONG_NO_ENTRY- See Also:
-
EMPTY_LONG_SET
public static final com.carrotsearch.hppc.LongSet EMPTY_LONG_SET
-
-
Method Details
-
iterator
-
iterable
-
intSet
public static com.carrotsearch.hppc.IntSet intSet() -
addAll
public static void addAll(com.carrotsearch.hppc.IntSet theContainer, com.carrotsearch.hppc.IntContainer theIntsToAdd) -
putAll
public static <T> void putAll(com.carrotsearch.hppc.IntObjectMap<T> theMap, com.carrotsearch.hppc.IntObjectMap<T> theOtherMap) -
putAll
public static void putAll(com.carrotsearch.hppc.IntIntMap theMap, com.carrotsearch.hppc.IntIntMap theOtherMap) -
max
public static int max(com.carrotsearch.hppc.IntContainer theContainer) -
copy
public static com.carrotsearch.hppc.IntIntMap copy(com.carrotsearch.hppc.IntIntMap theMap) -
copy
public static com.carrotsearch.hppc.IntIntMap[] copy(com.carrotsearch.hppc.IntIntMap[] theMap) -
newIntIntOpenHashMap
public static com.carrotsearch.hppc.IntIntHashMap newIntIntOpenHashMap(int... theKeyOrValue) -
newLongLongOpenHashMap
public static com.carrotsearch.hppc.LongLongHashMap newLongLongOpenHashMap(long... theKeyOrValue) -
newLongIntOpenHashMap
public static com.carrotsearch.hppc.LongIntHashMap newLongIntOpenHashMap(long... theKeyOrValue) -
newIntObjectMap
public static <T> com.carrotsearch.hppc.IntObjectMap<T> newIntObjectMap(int theKey, T theValue) -
addAllProcedure
public static com.carrotsearch.hppc.procedures.LongIntProcedure addAllProcedure(com.carrotsearch.hppc.LongIntHashMap toMap) -
newIntObjectMap
public static <T> com.carrotsearch.hppc.IntObjectMap<T> newIntObjectMap() -
newLongObjectMap
public static <T> com.carrotsearch.hppc.LongObjectMap<T> newLongObjectMap() -
newObjectLongMap
public static <T> com.carrotsearch.hppc.ObjectLongMap<T> newObjectLongMap() -
addAll
public static void addAll(com.carrotsearch.hppc.LongSet theSet, com.carrotsearch.hppc.LongSet toAdd) -
singleton
public static com.carrotsearch.hppc.LongSet singleton(long theLong) -
immutable
public static com.carrotsearch.hppc.LongSet immutable(com.carrotsearch.hppc.LongSet theSet)
-