This package provides utility routines for handling integer sets and maps.
The main classes are
IntSet which represents a set of 32-bit integers
IntIterator which is an iterator over a sequence of 32-bit
IntHashMap which is a map from 32-bit integers to arbitrary
IntToIntMap which is a map from 32-bit integers to 32-bit
The package name is a pun on the conventional use by mathematicians of the symbol Z to denote the set of all natural integers.
Interface Summary Interface Description IntIteratorAn iterator over a sequence of unboxed int values. IntPredicateProxyThis interface represents an integer predicate (that is, a boolean function of an integer). IntToIntMapInterface defining a map from integers to integers
Class Summary Class Description ConcatenatingIntIteratorAn iterator over nodes, that concatenates the nodes returned by two supplied iterators. IntArraySetSet of int values. IntArraySet.IntArrayIteratorIterator class: iterate over an array of integers IntBlockSetSet of int values. IntComplementSetAn immutable integer set containing all int values except those in an excluded set IntEmptySetAn immutable integer set containing no integers IntExceptPredicateAn IntPredicate formed as the difference of two other predicates: it matches an integer if the first operand matches the integer and the second does not IntHashMap<T>A hash table that maps int keys to Object values. IntHashSetSet of int values. IntIntersectionPredicateAn IntPredicate formed as the union of two other predicates: it matches an integer if either of the operands matches the integer IntPredicateLambdaThis class allows an integer predicate (a boolean function of an integer) to be written as a lambda expression, in a way that works both in Java and C#. IntRangeSetSet of int values. IntRangeToIntMapSet of int values. IntRepeatIteratorAn iterator over a single integer repeated a fixed number of times IntSetA set of integers represented as int values IntSetPredicateAn implementation of IntPredicate that tests whether a given integer is a member of some IntSet IntSingletonIteratorAn iterator over a single integer IntSingletonSetAn immutable integer set containing a single integer IntStepIteratorAn iterator over a sequence of integers with regular steps, e.g. IntToIntArrayMapAn implementation of
IntToIntMapthat relies on serial searching, and is therefore optimized for very small map sizes
IntToIntHashMapA hash table that maps int keys to int values. IntUnionPredicateAn IntPredicate formed as the union of two other predicates: it matches an integer if either of the operands matches the integer IntUniversalSetAn immutable integer set containing every integer IntValuePredicateAn IntPredicate that matches a single specific integer MonotonicIntSetSet of int values.