|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Cursor in org.javimmutable.collections |
---|
Methods in org.javimmutable.collections that return Cursor | |
---|---|
Cursor<T> |
Cursorable.cursor()
|
Cursor<K> |
JImmutableMap.keysCursor()
Creates a Cursor to access all of the Map's keys. |
Cursor<K> |
JImmutableListMap.keysCursor()
Creates a Cursor to access all of the Map's keys. |
Cursor<Integer> |
JImmutableArray.keysCursor()
Creates a Cursor to access all of the Map's keys. |
Cursor<T> |
Cursor.next()
Advances to the next (possibly first) value. |
Cursor<T> |
Cursor.start()
All Cursors are created in a pre-start position pointing "before" the first element. |
Cursor<V> |
JImmutableMap.valuesCursor()
Creates a Cursor to access all of the Map's values. |
Cursor<T> |
JImmutableArray.valuesCursor()
Creates a Cursor to access all of the Map's values. |
Cursor<V> |
JImmutableListMap.valuesCursor(K key)
Creates a Cursor to access all of the specified key's list. |
Methods in org.javimmutable.collections with parameters of type Cursor | |
---|---|
MutableBuilder<T,C> |
MutableBuilder.add(Cursor<? extends T> source)
Adds all values in the Cursor to the values included in the collection when build() is called. |
boolean |
JImmutableSet.containsAll(Cursor<? extends T> values)
Determines if the Set contains all values in the specified collection. |
boolean |
JImmutableSet.containsAny(Cursor<? extends T> values)
Determines if the Set contains any values in the specified collection. |
JImmutableSet<T> |
JImmutableSet.deleteAll(Cursor<? extends T> other)
Removes all values of other from the Set. |
JImmutableSet<T> |
JImmutableSet.intersection(Cursor<? extends T> values)
Removes all values from the Set that are not contained in the other collection. |
JImmutableSet<T> |
JImmutableSet.union(Cursor<? extends T> values)
Adds all values from other to the Set. |
Uses of Cursor in org.javimmutable.collections.array.bit32 |
---|
Methods in org.javimmutable.collections.array.bit32 that return Cursor | |
---|---|
Cursor<JImmutableMap.Entry<Integer,T>> |
StandardBit32Array.cursor()
|
Cursor<JImmutableMap.Entry<Integer,T>> |
SingleBit32Array.cursor()
|
Cursor<JImmutableMap.Entry<Integer,T>> |
FullBit32Array.cursor()
|
Cursor<JImmutableMap.Entry<Integer,T>> |
EmptyBit32Array.cursor()
|
Uses of Cursor in org.javimmutable.collections.array.trie32 |
---|
Methods in org.javimmutable.collections.array.trie32 with parameters of type Cursor | |
---|---|
TrieArray.Builder<T> |
TrieArray.Builder.add(Cursor<? extends T> source)
|
Uses of Cursor in org.javimmutable.collections.common |
---|
Methods in org.javimmutable.collections.common that return Cursor | |
---|---|
Cursor<T> |
AbstractJImmutableSet.cursor()
|
Cursor<K> |
AbstractJImmutableMap.keysCursor()
|
Cursor<Integer> |
AbstractJImmutableArray.keysCursor()
|
Cursor<V> |
AbstractJImmutableMap.valuesCursor()
|
Cursor<T> |
AbstractJImmutableArray.valuesCursor()
|
Methods in org.javimmutable.collections.common with parameters of type Cursor | ||
---|---|---|
boolean |
AbstractJImmutableSet.containsAll(Cursor<? extends T> values)
|
|
boolean |
AbstractJImmutableSet.containsAny(Cursor<? extends T> values)
|
|
JImmutableSet<T> |
AbstractJImmutableSet.deleteAll(Cursor<? extends T> values)
|
|
JImmutableSet<T> |
AbstractJImmutableSet.intersection(Cursor<? extends T> values)
|
|
static
|
IteratorAdaptor.of(Cursor<V> cursor)
|
|
JImmutableSet<T> |
AbstractJImmutableSet.union(Cursor<? extends T> values)
|
Constructors in org.javimmutable.collections.common with parameters of type Cursor | |
---|---|
IteratorAdaptor(Cursor<T> cursor)
|
Uses of Cursor in org.javimmutable.collections.cursors |
---|
Classes in org.javimmutable.collections.cursors that implement Cursor | |
---|---|
class |
AbstractStartCursor<T>
Base implementation for unstarted Cursor classes. |
class |
AbstractStartedCursor<T>
Base class for started (i.e. |
class |
EmptyStartedCursor<T>
Cursor implementation intended solely for internal use in the cursors package. |
class |
LazyCursor<V>
Cursor that creates and returns a real Cursor for a specific iterable only when start() or next() is called for the first time. |
class |
MultiCursor<T>
A Cursor that combines multiple Cursors into a single virtual Cursor that visits all values from all Cursors in order. |
class |
MultiTransformCursor<S,T>
Cursor that produces values by visiting all values in a Cursor of objects and using a Func1 on each object to produce a Cursor that is then visited to reach all of its elements. |
class |
SequenceCursor<T>
|
class |
SingleValueCursor<T>
A Cursor containing exactly one value to be traversed. |
class |
TransformCursor<S,T>
A Cursor that visits all values in another Cursor and transforms each value using a Func1 object. |
protected static class |
ValueFunctionCursor.Start<T,F extends ValueFunction<T>,A extends ValueFunctionFactory<T,F>>
|
Methods in org.javimmutable.collections.cursors with type parameters of type Cursor | ||
---|---|---|
static
|
MultiCursor.of(C... cursors)
|
|
static
|
MultiCursor.of(C cursor1,
C cursor2)
|
|
static
|
MultiCursor.of(C cursor1,
C cursor2,
C cursor3)
|
Methods in org.javimmutable.collections.cursors that return Cursor | ||
---|---|---|
static Cursor<Integer> |
StandardCursor.forRange(int low,
int high)
Creates a Cursor over a range of integers. |
|
Cursor<T> |
ValueFunctionCursor.Start.next()
|
|
Cursor<T> |
TransformCursor.next()
|
|
Cursor<T> |
SingleValueCursor.next()
|
|
Cursor<T> |
MultiTransformCursor.next()
|
|
Cursor<T> |
MultiCursor.next()
|
|
Cursor<V> |
LazyCursor.next()
Creates the real cursor using the factory and returns its next() method's result. |
|
Cursor<T> |
EmptyStartedCursor.next()
|
|
Cursor<T> |
AbstractStartedCursor.next()
|
|
Cursor<T> |
AbstractStartCursor.next()
|
|
static
|
StandardCursor.of()
Creates an empty cursor that has no values. |
|
static
|
ValueFunctionCursor.of(A factory)
Produces a non-thread safe Cursor to traverse the values returned by a function. |
|
static
|
ZipCursor.of(Cursor<C1> cursor1,
Cursor<C2> cursor2)
|
|
static
|
MultiTransformCursor.of(Cursor<S> source,
Func1<S,Cursor<T>> transforminator)
|
|
static
|
TransformCursor.of(Cursor<S> cursor,
Func1<S,T> transforminator)
|
|
static
|
StandardCursor.of(Indexed<T> source)
Creates a Cursor for the given Indexed. |
|
static
|
IterableCursor.of(Iterable<T> iterable)
Creates a mutable Cursor implementation that traverses the specified iterable. |
|
static
|
SequenceCursor.of(Sequence<T> sequence)
|
|
static
|
StandardCursor.of(StandardCursor.Source<T> source)
Creates a Cursor for the given Source. |
|
static
|
TransformCursor.ofKeys(Cursor<JImmutableMap.Entry<K,V>> cursor)
|
|
static
|
TransformCursor.ofValues(Cursor<JImmutableMap.Entry<K,V>> cursor)
|
|
Cursor<T> |
TransformCursor.start()
|
|
Cursor<T> |
MultiTransformCursor.start()
|
|
Cursor<T> |
MultiCursor.start()
|
|
Cursor<T> |
EmptyStartedCursor.start()
|
|
Cursor<T> |
AbstractStartedCursor.start()
|
|
Cursor<T> |
AbstractStartCursor.start()
|
Methods in org.javimmutable.collections.cursors with parameters of type Cursor | ||
---|---|---|
MultiCursor.Builder<T> |
MultiCursor.Builder.add(Cursor<T> cursor)
|
|
static boolean |
Cursors.areEqual(Cursor<?> a,
Cursor<?> b)
Return true if and only if both cursors have the same length and contain objects that are equal based on their equals() methods. |
|
static boolean |
Cursors.areEqual(Cursor<?> a,
Cursor<?> b)
Return true if and only if both cursors have the same length and contain objects that are equal based on their equals() methods. |
|
static int |
Cursors.computeHashCode(Cursor<?> cursor)
Computes a hash code from the hash codes of all values in the cursor. |
|
static
|
StandardCursor.makeList(Cursor<T> cursor)
Utility method, useful in unit tests, that collects all of the values in the Cursor into a List and returns the List. |
|
static String |
Cursors.makeString(Cursor<?> cursor)
|
|
static
|
MultiCursor.of(C... cursors)
|
|
static
|
ZipCursor.of(Cursor<C1> cursor1,
Cursor<C2> cursor2)
|
|
static
|
ZipCursor.of(Cursor<C1> cursor1,
Cursor<C2> cursor2)
|
|
static
|
MultiTransformCursor.of(Cursor<S> source,
Func1<S,Cursor<T>> transforminator)
|
|
static
|
TransformCursor.of(Cursor<S> cursor,
Func1<S,T> transforminator)
|
|
static
|
TransformCursor.ofKeys(Cursor<JImmutableMap.Entry<K,V>> cursor)
|
|
static
|
TransformCursor.ofValues(Cursor<JImmutableMap.Entry<K,V>> cursor)
|
Method parameters in org.javimmutable.collections.cursors with type arguments of type Cursor | ||
---|---|---|
static
|
MultiTransformCursor.of(Cursor<S> source,
Func1<S,Cursor<T>> transforminator)
|
|
static
|
LazyCursor.of(Func0<Cursor<V>> factory)
Creates a new LazyPersistentIterator using the specified factory. |
Constructors in org.javimmutable.collections.cursors with parameters of type Cursor | |
---|---|
MultiCursor(Cursor<T>... cursors)
|
|
TransformCursor(Cursor<S> source,
Func1<S,T> transforminator)
|
Constructor parameters in org.javimmutable.collections.cursors with type arguments of type Cursor | |
---|---|
LazyCursor(Func0<Cursor<V>> factory)
Creates a new LazyCursor for the specified factory. |
Uses of Cursor in org.javimmutable.collections.hash |
---|
Methods in org.javimmutable.collections.hash that return Cursor | |
---|---|
Cursor<JImmutableMap.Entry<K,V>> |
JImmutableHashMap.cursor()
|
Cursor<JImmutableMap.Entry<K,V>> |
EmptyHashMap.cursor()
|
Uses of Cursor in org.javimmutable.collections.inorder |
---|
Methods in org.javimmutable.collections.inorder that return Cursor | |
---|---|
Cursor<JImmutableMap.Entry<K,V>> |
JImmutableInsertOrderMap.cursor()
|
Uses of Cursor in org.javimmutable.collections.iocursors |
---|
Subinterfaces of Cursor in org.javimmutable.collections.iocursors | |
---|---|
interface |
CloseableCursor<T>
Extension of the Cursor interface to add a close() method. |
Uses of Cursor in org.javimmutable.collections.list |
---|
Methods in org.javimmutable.collections.list that return Cursor | |
---|---|
Cursor<T> |
JImmutableArrayList.cursor()
|
Methods in org.javimmutable.collections.list with parameters of type Cursor | |
---|---|
JImmutableArrayList.Builder<T> |
JImmutableArrayList.Builder.add(Cursor<? extends T> source)
|
Uses of Cursor in org.javimmutable.collections.listmap |
---|
Methods in org.javimmutable.collections.listmap that return Cursor | |
---|---|
Cursor<JImmutableMap.Entry<K,JImmutableList<V>>> |
AbstractJImmutableListMap.cursor()
|
Cursor<K> |
AbstractJImmutableListMap.keysCursor()
|
Cursor<V> |
AbstractJImmutableListMap.valuesCursor(K key)
|
Uses of Cursor in org.javimmutable.collections.tree |
---|
Methods in org.javimmutable.collections.tree that return Cursor | |
---|---|
Cursor<JImmutableMap.Entry<K,V>> |
TwoNode.cursor()
|
abstract Cursor<JImmutableMap.Entry<K,V>> |
TreeNode.cursor()
Returns a Cursor visiting all entries in sorted order. |
Cursor<JImmutableMap.Entry<K,V>> |
ThreeNode.cursor()
|
Cursor<JImmutableMap.Entry<K,V>> |
LeafNode.cursor()
|
Cursor<JImmutableMap.Entry<K,V>> |
JImmutableTreeMap.cursor()
|
Cursor<JImmutableMap.Entry<K,V>> |
EmptyNode.cursor()
|
Uses of Cursor in org.javimmutable.collections.tree_list |
---|
Methods in org.javimmutable.collections.tree_list that return Cursor | |
---|---|
Cursor<T> |
TwoNode.cursor()
|
abstract Cursor<T> |
TreeNode.cursor()
|
Cursor<T> |
ThreeNode.cursor()
|
Cursor<T> |
LeafNode.cursor()
|
Cursor<T> |
JImmutableTreeList.cursor()
|
Methods in org.javimmutable.collections.tree_list with parameters of type Cursor | |
---|---|
JImmutableTreeList.Builder<T> |
JImmutableTreeList.Builder.add(Cursor<? extends T> source)
|
Uses of Cursor in org.javimmutable.collections.util |
---|
Methods in org.javimmutable.collections.util that return Cursor | ||
---|---|---|
static
|
Functions.reverse(Cursor<? extends T> cursor)
Creates a new Cursor whose values are in the reverse order of the provided Cursor. |
Methods in org.javimmutable.collections.util with parameters of type Cursor | ||
---|---|---|
static
|
JImmutables.array(Cursor<JImmutableMap.Entry<Integer,T>> source)
Creates a sparse array containing all of the values from source that supports any integer (positive or negative) as an index. |
|
static
|
Functions.collectAll(Cursor<? extends T> cursor,
A list,
Func1<? super T,R> func)
Calls func for every value in cursor and adds each value returned by func to a list. |
|
static
|
Functions.collectSome(Cursor<? extends T> cursor,
A list,
Func1<? super T,Holder<R>> func)
Calls func for every value in cursor and adds each value for which func returns a non-empty Holder to a list. |
|
static
|
Functions.each(Cursor<T> cursor)
Returns an Iterable that can be used to navigate each element in the specified Cursor. |
|
static
|
Functions.find(Cursor<? extends T> cursor,
Func1<? super T,Boolean> func)
Calls func for each value in cursor and passes it to func until func returns true. |
|
static
|
Functions.foldLeft(R accumulator,
Cursor<? extends T> cursor,
Func2<R,? super T,R> func)
Calls func for every value in cursor passing in the accumulator and each value as parameters and setting accumulator to the result. |
|
static
|
Functions.foldRight(R accumulator,
Cursor<? extends T> cursor,
Func2<R,? super T,R> func)
Calls func for every value in cursor from right to left (i.e. |
|
static
|
Functions.insertAll(A addable,
Cursor<? extends T> cursor)
Add all values form the cursor to the addable. |
|
static
|
JImmutables.insertOrderSet(Cursor<? extends T> source)
Constructs a set containing all of the values in source that sorts values based on the order they were originally added to the set. |
|
static
|
JImmutables.list(Cursor<? extends T> source)
Produces a JImmutableList containing all of the values in source built atop a 32-way tree. |
|
static
|
JImmutables.ralist(Cursor<? extends T> source)
Produces an empty JImmutableRandomAccessList containing all of the values in source built atop a 2-3 tree. |
|
static
|
Functions.reject(Cursor<? extends T> cursor,
A list,
Func1<? super T,Boolean> func)
Calls func for every value in cursor and adds each value for which func returns false to a list. |
|
static
|
Functions.reverse(Cursor<? extends T> cursor)
Creates a new Cursor whose values are in the reverse order of the provided Cursor. |
|
static
|
Functions.select(Cursor<? extends T> cursor,
A list,
Func1<? super T,Boolean> func)
Calls func for every value in cursor and adds each value for which func returns true to a list. |
|
static
|
JImmutables.set(Cursor<? extends T> source)
Constructs an unsorted set containing the values from source. |
|
static
|
JImmutables.sortedSet(Comparator<T> comparator,
Cursor<? extends T> source)
Constructs a set containing all of the values in source that sorts values using comparator. |
|
static
|
JImmutables.sortedSet(Cursor<? extends T> source)
Constructs a set containing all of the values in source that sorts values in their natural sort order (using ComparableComparator). |
|
static
|
JImmutables.stack(Cursor<? extends T> source)
Produces a JImmutableStack containing all of the values in source. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |