Package org.javimmutable.collections

Interface Summary
Cursor<T> Implemented by objects used to traverse persistent data structures.
Cursorable<T> Implemented by objects that can create a Cursor for a given type.
Func0<T> Interface for functions that take no arguments and return a value of type T.
Func1<P,R> Interface for functions that take a single parameter.
Func2<P1,P2,R> Interface for functions that take two parameters.
Func3<P1,P2,P3,R> Interface for functions that take three parameters.
Func4<P1,P2,P3,P4,R> Interface for functions that take four parameters.
Holder<T> Instances are immutable containers for at most a single object.
Indexed<T> Interface for containers that allow access to values by an integer index.
Insertable<T> Implemented by classes that can "insert" some type of value into themselves.
JImmutableArray<T> Immutable sparse array implementation using integers as keys.
JImmutableList<T> Interface for containers that store items in list form with individual items available for get() and assign() using their indexes.
JImmutableList.Builder<T>  
JImmutableListMap<K,V> Interface for maps that map keys to lists of values.
JImmutableMap<K,V> Interface for persistent data structures that allow storage and retrieval of key/value pairs.
JImmutableMap.Entry<K,V> An immutable entry in the map.
JImmutableRandomAccessList<T> Extension of PersistentList that allows insertion and deletion at arbitrary indexes within the list.
JImmutableRandomAccessList.Builder<T>  
JImmutableSet<T> Interface for immutable sets.
JImmutableStack<T> Interface for objects that store values in LIFO form.
Mapped<K,V> Interface for containers that associate keys with values.
MutableBuilder<T,C> Interface for mutable objects used to produce collections by adding objects to the builder and then calling a build() method.
Sequence<T> Interface for collections that contain a head value and a tail containing the remainder of the sequence.
 

Class Summary
Holders<V> Provides static utility methods for constructing Holder instances.
MapEntry<K,V> Immutable implementation of both Map.Entry and PersistentMap.Entry that uses the same equals() and hashCode() implementations as documented in javadoc for Map.Entry.
Tuple2<A,B> Immutable container for 2 values.
Tuple3<A,B,C> Immutable container for 3 values.
Tuple4<A,B,C,D> Immutable container for 4 values.
 

Exception Summary
Cursor.NotStartedException Thrown by hasValue() and getValue() if the cursor has not been started by calling next() yet.
Cursor.NoValueException Thrown by getValue() if the Cursor's hasValue() method returns false.
 



Copyright © 2014 Burton Computer Corporation. All rights reserved.