Index

A B C D E F G H I K L M N O P R S T U V W Z 
All Classes and Interfaces|All Packages|Serialized Form

A

accept(D) - Method in interface sprouts.Action
Executes the action.
Note that this method deliberately requires the handling of checked exceptions at its invocation sites because there may be any number of implementations hiding behind this interface, and so when you invoke this method it is unwise to assume that your control flow will not be interrupted by exceptions.
Action<D> - Interface in sprouts
A functional interface for observing state changes and performing some action in response.
actionOfWeak(O, BiConsumer<O, D>) - Method in class sprouts.impl.Sprouts
 
actionOfWeak(O, BiConsumer<O, D>) - Method in interface sprouts.impl.SproutsFactory
 
add(Maybe<T>) - Method in interface sprouts.Tuple
Creates and returns a new tuple with the item of the supplied Maybe appended to the end of the tuple of items.
add(Val<T>) - Method in interface sprouts.Vars
Wraps the item of the provided Val in a new mutable Var property and adds it to the end of this property list.
add(Var<T>) - Method in interface sprouts.Vars
Adds the provided property to the end of the list.
add(T) - Method in interface sprouts.Tuple
Creates a new tuple of items where the supplied item is appended to the end of the tuple.
add(T) - Method in interface sprouts.Vars
Wraps the provided value in a Var property and adds it to the list.
ADD - Enum constant in enum class sprouts.SequenceChange
Indicates that a new value was added to the Vars instance.
addAll(Iterable<T>) - Method in interface sprouts.Tuple
Creates and returns a new tuple from this one where the items of the supplied Iterable are appended at the end of the new item sequence.
addAll(Iterable<T>) - Method in interface sprouts.Vars
Iterates over the supplied values, and appends them to this list as properties.
addAll(Maybe<T>...) - Method in interface sprouts.Tuple
Creates and returns an updated tuple of items where the items of the provided Maybe are appended at the end of the new item sequence.
addAll(Tuple<T>) - Method in interface sprouts.Tuple
Creates a merged tuple of items where the first sequence is based on the items of this tuple and the second sequence is based on the items of the provided tuple.
addAll(Vals<T>) - Method in interface sprouts.Vars
Iterates over the supplied properties, and adds their items to this list in the form of new property instances.
addAll(Vars<T>) - Method in interface sprouts.Vars
Adds all properties from the provided list of properties to this list.
addAll(T...) - Method in interface sprouts.Tuple
Wraps each provided item in a property and appends it to this tuple of items.
addAll(T...) - Method in interface sprouts.Vars
Wraps each provided item in a property and appends it to this list of properties.
addAllAt(int, Iterable<T>) - Method in interface sprouts.Tuple
Iterates over the supplied values, and adds them to this tuple as items at the specified index.
addAllAt(int, Iterable<T>) - Method in interface sprouts.Vars
Iterates over the supplied values, and adds them to this list as properties at the specified index.
addAllAt(int, Maybe<T>...) - Method in interface sprouts.Tuple
Creates an updated tuple of items where the items of the provided Maybe are all inserted at the specified index.
addAllAt(int, Tuple<T>) - Method in class sprouts.impl.TupleImpl
 
addAllAt(int, Tuple<T>) - Method in interface sprouts.Tuple
Adds all items from the provided tuple of items to this tuple at a specified index.
addAllAt(int, Vals<T>) - Method in interface sprouts.Vars
Iterates over the supplied properties, and adds their items to this list in the form of new property instances at the specified index.
addAllAt(int, Vars<T>) - Method in interface sprouts.Vars
Adds all properties from the provided list of properties to this list at a specified index.
addAllAt(int, T...) - Method in interface sprouts.Tuple
Wraps each provided item in a property and adds them to this tuple of items at the specified index.
addAllAt(int, T...) - Method in interface sprouts.Vars
Wraps each provided item in a property and adds them to this list of properties at the specified index.
addAt(int, Maybe<T>) - Method in interface sprouts.Tuple
Creates a tuple where the item of the supplied Maybe is inserted to the tuple at the specified index.
addAt(int, Val<T>) - Method in interface sprouts.Vars
Wraps the item of the provided Val in a new Var property and adds it to the list at the specified index.
addAt(int, Var<T>) - Method in interface sprouts.Vars
Adds the provided property to the list at the specified index.
addAt(int, T) - Method in class sprouts.impl.TupleImpl
 
addAt(int, T) - Method in interface sprouts.Tuple
Creates an updated tuple of items where the supplied item is inserted at the specified index.
addAt(int, T) - Method in interface sprouts.Vars
Wraps the provided value in a Var property and adds it to the list at the specified index.
addIfNonNull(T) - Method in interface sprouts.Tuple
Adds the supplied item to the new tuple, if and only if the item is not null.
addIfNonNullAt(int, T) - Method in interface sprouts.Tuple
Creates a new tuple of items where the supplied item is inserted at the specified index if, and only if, the item is not null.
all(Predicate<Pair<K, V>>) - Method in interface sprouts.Association
Checks if all the key/value pairs in this association match the given predicate and returns true if all of them do, otherwise false.
all(Predicate<Val<T>>) - Method in interface sprouts.Vals
Check if all the properties in this list match the given predicate.
all(Predicate<T>) - Method in interface sprouts.Tuple
Check if all the items in this tuple match the given predicate.
ALL - Enum constant in enum class sprouts.From
This channel is used to identify changes which are caused by any source.
allowsNull() - Method in class sprouts.impl.TupleImpl
 
allowsNull() - Method in interface sprouts.Tuple
A tuple will only allow nullable items if it was constructed with a "ofNullable(..)" factory method.
allowsNull() - Method in interface sprouts.Val
A property will only allow null items if it was constructed with a "ofNullable(..)" factory method.
allowsNull() - Method in interface sprouts.Vals
A property list will only allow nullable properties if it was constructed with a "ofNullable(..)" factory method.
andThen(Action<D>) - Method in interface sprouts.Action
Returns a new Action that will execute this action and then the given action.
andThen(Observer) - Method in interface sprouts.Observer
Returns a new Observer that will execute this callback and then the given callback.
any(Predicate<Pair<K, V>>) - Method in interface sprouts.Association
Checks if any of the key/value pairs in this association match the given predicate and returns true if any of them do, otherwise false.
any(Predicate<Val<T>>) - Method in interface sprouts.Vals
Check if any of the properties in this list match the given predicate.
any(Predicate<T>) - Method in interface sprouts.Tuple
Check if any of the items in this tuple match the given predicate.
anyEmpty() - Method in interface sprouts.Vals
Check if any of the properties in this list is empty.
anyNull() - Method in interface sprouts.Tuple
Check if any of the items in this tuple is null.
Association<K,V> - Interface in sprouts
Defines an association between keys and values as an immutable value object where the values are accessed by the keys in a map-like fashion.
associationOf(Class<K>, Class<V>) - Method in class sprouts.impl.Sprouts
 
associationOf(Class<K>, Class<V>) - Method in interface sprouts.impl.SproutsFactory
 
at(int) - Method in interface sprouts.Vals
The property at the given index.
at(int) - Method in interface sprouts.Vars
The property at the given index.

B

between(Class<K>, Class<V>) - Static method in interface sprouts.Association
Creates a new association between keys and values with the given key and value types.

C

cast(Event) - Static method in interface sprouts.Observable
Casts the given Event to an Observable.
cast(Val<T>) - Static method in interface sprouts.Viewable
Regular properties, created from the various factory methods in Val and Var, (may) also implement the Viewable interface internally.
cast(Vals<T>) - Static method in interface sprouts.Viewables
Regular properties, created from the various factory methods in Vals and Vars, (may) also implement the Viewables interface internally.
change() - Method in class sprouts.impl.SequenceDiff
The type of change that occurred between the previous and current Tuple state (to which this SequenceDiff belongs).
change() - Method in interface sprouts.ValDelegate
The type of change that occurred in the property.
change() - Method in interface sprouts.ValsDelegate
The type of change that occurred in the property list.
channel() - Method in interface sprouts.ValDelegate
The Channel constant from which the change originated.
Channel - Interface in sprouts
This is a marker interface for property event channels.
classTyped(Class<F>, Class<S>) - Static method in class sprouts.Pair
An alternative to Pair.class which also includes the parameter types in the type signature of the returned pair class.
classTyped(Class<K>, Class<V>) - Static method in interface sprouts.Association
An alternative to Association.class which also includes the parameter types in the type signature of the returned association class.
classTyped(Class<T>) - Static method in interface sprouts.Tuple
An alternative to Tuple.class which also includes the parameter type in the type signature of the returned tuple class.
clear() - Method in interface sprouts.Association
Returns a completely empty association but with the same key and value types as this one.
clear() - Method in class sprouts.impl.TupleImpl
 
clear() - Method in interface sprouts.Tuple
Creates a new tuple of this one without any items but the same nullability (see Tuple.allowsNull()).
clear() - Method in interface sprouts.Vars
Removes all properties from this list.
clear() - Method in interface sprouts.WeakAction
Clears the action, making it no longer executable.
clear() - Method in interface sprouts.WeakObserver
Clears the observer, making it no longer executable.
CLEAR - Enum constant in enum class sprouts.SequenceChange
Indicates that the Vars instance was cleared.
collectorOf(Class<K>, Class<V>) - Static method in interface sprouts.Association
A collector that can be used to collect key-value pairs from a Java Stream of Pair instances into an association.
collectorOf(Class<T>) - Static method in interface sprouts.Tuple
Creates a Collector that can be used to collect a stream of items into a new tuple of non-nullable items.
collectorOfNullable(Class<T>) - Static method in interface sprouts.Tuple
Use this to collect a stream of items into a new tuple of nullable items.
Composability: - Search tag in interface sprouts.Lens
Section
contains(T) - Method in interface sprouts.Tuple
Checks weather the supplied item is in this tuple of items.
contains(T) - Method in interface sprouts.Vals
Checks weather the supplied item is in this list of properties.
contains(Maybe<T>) - Method in interface sprouts.Tuple
Check if the value of the supplied Maybe is wrapped by any of the items in this tuple.
contains(Val<T>) - Method in interface sprouts.Vals
Check if the value of the supplied property is wrapped by any of the properties in this list.
containsKey(K) - Method in interface sprouts.Association
Checks if the given key is present in this association and returns true if it is, otherwise false.
create() - Static method in interface sprouts.Event
Creates a new empty Event that can be observed and triggered.
create() - Static method in class sprouts.Version
Creates a unique version object with a new lineage and a succession number of zero.
currentValue() - Method in interface sprouts.ValDelegate
Exposes the value of the property that was listened to in an Maybe wrapper.
currentValues() - Method in interface sprouts.ValsDelegate
Exposes a read only property list after the change has been applied.

D

defaultChannel() - Method in class sprouts.impl.Sprouts
 
defaultChannel() - Method in interface sprouts.impl.SproutsFactory
The default channel used for change events.
defaultId() - Method in class sprouts.impl.Sprouts
 
defaultId() - Method in interface sprouts.impl.SproutsFactory
The default id for properties which do not have an id explicitly specified.
defaultObservableChannel() - Method in class sprouts.impl.Sprouts
 
defaultObservableChannel() - Method in interface sprouts.impl.SproutsFactory
The default channel used for Observable events, registered through the Observable.subscribe(Observer) method.
delegateOf(Val<T>, Channel, SingleChange, T, T) - Method in class sprouts.impl.Sprouts
 
delegateOf(Val<T>, Channel, SingleChange, T, T) - Method in interface sprouts.impl.SproutsFactory
 
delegateOf(Vals<T>, SequenceChange, int, Vals<T>, Vals<T>) - Method in class sprouts.impl.Sprouts
 
delegateOf(Vals<T>, SequenceChange, int, Vals<T>, Vals<T>) - Method in interface sprouts.impl.SproutsFactory
 
description() - Method in interface sprouts.Problem
A problem may have a description, which provides more detailed information about what went wrong.
differenceFromPrevious() - Method in interface sprouts.impl.SequenceDiffOwner
Provides a SequenceDiff object that describes the difference between the current tuple and a previous one (if any), in terms of a SequenceChange, the index of the change, and the number of changes.
differenceFromPrevious() - Method in class sprouts.impl.TupleImpl
 
DISTINCT - Enum constant in enum class sprouts.SequenceChange
Indicates that the duplicates in the Vars instance were removed.

E

entrySet() - Method in interface sprouts.Association
Returns a Set of all the key-value pairs in this association as Pair instances, where the first value of the pair is the key and the second value is the value associated with that key.
equals(Object, Object) - Static method in interface sprouts.Val
Val and Var implementations are expected to represent simple wrappers for data centric quasi value types! So two primitive arrays of integers for example would not be recognized as equal when calling one of their Object.equals(Object) methods because the method does not compare the contents of the two arrays, it compares the identities of the arrays! This method defines what it means for 2 property items to be equal.
equals(Object) - Method in class sprouts.impl.SequenceDiff
 
equals(Object) - Method in class sprouts.impl.TupleImpl
 
equals(Object) - Method in class sprouts.Pair
 
equals(Object) - Method in class sprouts.Version
 
event() - Method in class sprouts.impl.Sprouts
 
event() - Method in interface sprouts.impl.SproutsFactory
 
Event - Interface in sprouts
An event is something that can be triggered and reacted through Observables created by the Event.observable() method.
Event.Executor - Interface in sprouts
The "event executor" is responsible for executing a given Runnable when an Event is triggered.
eventOf(Event.Executor) - Method in class sprouts.impl.Sprouts
 
eventOf(Event.Executor) - Method in interface sprouts.impl.SproutsFactory
 
exception() - Method in interface sprouts.Problem
A problem object may or may not have an exception attached to it.
execute(Runnable) - Method in interface sprouts.Event.Executor
Executes the given Runnable.

F

factory() - Static method in class sprouts.impl.Sprouts
A SproutsFactory is used by the various factory methods of this API like Var.of(Object), Vals.of(Object, Object[]), Result.of(Object)...
Factory Method: - Search tag in interface sprouts.Lens
Section
fire() - Method in interface sprouts.Event
Triggers this Event, which means that all registered listeners will be notified.
fireChange() - Method in interface sprouts.Vals
Similar to Val.fireChange(Channel) but for a list of properties.
fireChange(Channel) - Method in interface sprouts.Val
Triggers all observer lambdas for the given Channel.
fireChange(SequenceChange, int, Vals<T>, Vals<T>, Vals<T>) - Method in class sprouts.impl.PropertyListChangeListeners
 
fireChange(SequenceChange, int, Var<T>, Var<T>, Vals<T>) - Method in class sprouts.impl.PropertyListChangeListeners
 
fireChange(SequenceChange, Vals<T>) - Method in class sprouts.impl.PropertyListChangeListeners
 
fireChange(Val<T>, Channel, T, T) - Method in class sprouts.impl.PropertyChangeListeners
 
first() - Method in class sprouts.Pair
Returns the first value of this pair, which corresponds to the first parameter of the Pair.of(Object, Object) factory method that created this pair.
first() - Method in interface sprouts.Tuple
Exposes the first item in the tuple of items.
first() - Method in interface sprouts.Vals
Exposes the first property in the list of properties.
first() - Method in interface sprouts.Vars
Exposes the first property in the list of properties.
firstIndexOf(T) - Method in interface sprouts.Tuple
Use this to find the first index of an item in the tuple sequence.
firstIndexOf(T) - Method in interface sprouts.Vals
Use this to find the index of an item.
firstIndexOf(Maybe<T>) - Method in interface sprouts.Tuple
Uses the item of the supplied Maybe to find the index of the item in this tuple of items.
firstIndexOf(Val<T>) - Method in interface sprouts.Vals
Uses the item of the supplied property to find the index of the item in this list of properties.
firstIndexStartingFrom(int, T) - Method in interface sprouts.Tuple
Use this to find the index of an item after a certain index.
FORK_JOIN_POOL - Static variable in interface sprouts.Event.Executor
A Event.Executor that executes the given Runnable on the ForkJoinPool.commonPool() (which is a shared, static pool).
From - Enum Class in sprouts
An implementation of the Channel marker interface which is used to identify the source of a change in a Var or Val property.

G

get() - Method in interface sprouts.Val
This method is intended to be used for when you want to wrap non-nullable types.
get(int) - Method in class sprouts.impl.TupleImpl
 
get(int) - Method in interface sprouts.Tuple
Exposes the Maybe at the specified index.
get(K) - Method in interface sprouts.Association
Returns the value associated wrapped by an Optional with the given key if it is present in this association, or an empty Optional if the key is not present.
getter(A) - Method in interface sprouts.Lens
Extracts the field of type B from the parent type A and returns it or throws an exception if an error occurs while extracting the field.

H

hashCode() - Method in class sprouts.impl.SequenceDiff
 
hashCode() - Method in class sprouts.impl.TupleImpl
 
hashCode() - Method in class sprouts.Pair
 
hashCode() - Method in class sprouts.Version
 
hashCode(Object) - Static method in interface sprouts.Val
Val and Var implementations require their own Object.hashCode() method because they are supposed to be viewed as data centric quasi value types! So two arrays of integer for example would not have the same hash code when calling Object.hashCode() on them.
hasID() - Method in interface sprouts.Val
A convenient method to check if this property has been assigned an id.
HasId<I> - Interface in sprouts
This is a sort of marker interface for Var/Val property item types, which tells the property that it wants to use the object returned by the HasId.id() method as a unique identifier for its item when determining the ValDelegate.change() type.
hasNoID() - Method in interface sprouts.Val
A convenient method to check if this property has not been assigned an id.
hasProblems() - Method in interface sprouts.Result
Checks if this result has Problems associated with it.

I

id() - Method in interface sprouts.HasId
The unique identifier for this value object.
id() - Method in interface sprouts.Val
Returns the name/id of the property which is useful for debugging as well as persisting their state by using them as keys for whatever storage data structure one chooses.
id() - Method in interface sprouts.ValDelegate
Exposes the id of the property that was listened to.
ID - Enum constant in enum class sprouts.SingleChange
The item implements HasId and changed its HasId.id().
idPattern() - Method in class sprouts.impl.Sprouts
 
idPattern() - Method in interface sprouts.impl.SproutsFactory
The regex Pattern used to validate property ids.
ifPresent(Consumer<T>) - Method in interface sprouts.Maybe
If an item is present, performs the given action with the item, otherwise does nothing.
ifPresentOrElse(Consumer<? super T>, Runnable) - Method in interface sprouts.Maybe
If an item is present, performs the given action with the item, otherwise performs the given empty-based action.
index() - Method in class sprouts.impl.SequenceDiff
The index at which the change occurred in the Tuple.
index() - Method in interface sprouts.ValsDelegate
Exposes the index at which the SequenceChange on the property list took place.
Note that in case of the type of mutation be non-specific to a particular index, like a list clear or a list sort, this method will return an empty Optional.
indicesOf(T) - Method in interface sprouts.Tuple
Finds all indices of the given value in this tuple of items and returns them as an array of integers.
indicesOf(T) - Method in interface sprouts.Vals
Finds all indices of the given value in this property list of items and returns them as an array of integers.
initial() - Static method in class sprouts.impl.SequenceDiff
Creates a new SequenceDiff instance that represents the initial state of a Tuple instance.
invoke() - Method in interface sprouts.Observer
Executes this callback.
is(T) - Method in interface sprouts.Maybe
This method check if the provided item is equal to the item wrapped by this Var instance.
is(Maybe<T>) - Method in interface sprouts.Maybe
This method check if the item by the provided wrapper is equal to the item wrapped by this Maybe instance.
is(Vals<T>) - Method in interface sprouts.Vals
Check for equality between this list of properties and another list of properties.
isDirectPredecessorOf(Version) - Method in class sprouts.Version
Determines if this version object is a direct predecessor of another version object.
isDirectSuccessorOf(SequenceDiff) - Method in class sprouts.impl.SequenceDiff
The successor of a SequenceDiff is computed deterministically from a previous SequenceDiff.
isDirectSuccessorOf(Version) - Method in class sprouts.Version
Determines if this version object is a direct successor of another version object.
isEmpty() - Method in interface sprouts.Association
Checks if this association is empty and returns true if it is, otherwise false.
isEmpty() - Method in interface sprouts.Maybe
If an item is not present, returns true, otherwise false.
isEmpty() - Method in interface sprouts.Tuple
The boolean flag that indicates if the tuple of items is empty, which means that it has no items.
isEmpty() - Method in interface sprouts.Vals
The boolean flag that indicates if the list of properties is empty, which means that it has no properties.
isImmutable() - Method in interface sprouts.Val
This method is used to determine if the property is immutable or not.
isLens() - Method in interface sprouts.Val
This method is used to determine if the property is a lens or not.
isMutable() - Method in interface sprouts.Val
This method is used to determine if the property is mutable or not.
isMutable() - Method in interface sprouts.Vals
Tells you whether this list of properties is mutable or not.
isNot(T) - Method in interface sprouts.Maybe
This method check if the provided item is not equal to the item wrapped by this Maybe instance.
isNot(Maybe<T>) - Method in interface sprouts.Maybe
This method check if the item of the provided wrapper is not equal to the item wrapped by this Maybe wrapper instance.
isNotEmpty() - Method in interface sprouts.Association
Checks if this association is not empty and returns true if it is not, otherwise false.
isNotEmpty() - Method in interface sprouts.Tuple
The boolean flag that indicates if the tuple of items is not empty, which means that it has at least one Maybe.
isNotEmpty() - Method in interface sprouts.Vals
The boolean flag that indicates if the list of properties is not empty, which means that it has at least one property.
isOneOf(T, T, T...) - Method in interface sprouts.Maybe
This method checks if at least one of the provided items is equal to the item wrapped by this Maybe instance.
isOneOf(Maybe<T>, Maybe<T>, Maybe<T>...) - Method in interface sprouts.Maybe
This checks if at least one of the items of the provided properties is equal to the item wrapped by this Maybe instance.
isPredecessorOf(Version) - Method in class sprouts.Version
Determines if this version object is a predecessor of another version object.
isPresent() - Method in interface sprouts.Maybe
If an item is present, returns true, otherwise false.
isSuccessorOf(Version) - Method in class sprouts.Version
Determines if this version object is a successor of another version object.
isView() - Method in interface sprouts.Val
This method is used to determine if the property is a view or not.
isView() - Method in interface sprouts.Vals
Tells you whether this list of properties is a view or not.
itemAsString() - Method in interface sprouts.Maybe
This method simply returns a String representation of the wrapped item which would otherwise be accessed via the Maybe.orElseThrow() method.
iterator() - Method in class sprouts.impl.TupleImpl
 

K

keySet() - Method in interface sprouts.Association
Returns a Set of all the keys in this association.
keyType() - Method in interface sprouts.Association
Returns the type of the keys in this association.

L

last() - Method in interface sprouts.Tuple
Exposes the last item in the tuple of items.
last() - Method in interface sprouts.Vals
Exposes the last property in the list of properties.
last() - Method in interface sprouts.Vars
Exposes the last property in the list of properties.
lastIndexBefore(int, T) - Method in interface sprouts.Tuple
Use this to find the index of an item before a certain index.
lastIndexOf(T) - Method in interface sprouts.Tuple
Use this to find the last index of an item in the tuple sequence.
Lens<A,B> - Interface in sprouts
The Lens interface defines an access and update operation on an individual part of a nested and immutable data structure.
lensOf(Var<T>, B, Lens<T, B>) - Method in class sprouts.impl.Sprouts
 
lensOf(Var<T>, B, Lens<T, B>) - Method in interface sprouts.impl.SproutsFactory
 
lensOf(Var<T>, Lens<T, B>) - Method in class sprouts.impl.Sprouts
 
lensOf(Var<T>, Lens<T, B>) - Method in interface sprouts.impl.SproutsFactory
 
lensOfNullable(Class<B>, Var<T>, Lens<T, B>) - Method in class sprouts.impl.Sprouts
 
lensOfNullable(Class<B>, Var<T>, Lens<T, B>) - Method in interface sprouts.impl.SproutsFactory
 
lineage() - Method in class sprouts.Version
Exposes the lineage number of this version object, which is a unique identifier that originates from the Version.create() method.
logAsDebug() - Method in interface sprouts.Problem
Logs the problem as a Logger.debug(java.lang.String) message to the default logger of the implementing class.
logAsError() - Method in interface sprouts.Problem
Logs the problem as a Logger.error(java.lang.String) message to the default logger of the implementing class.
logAsInfo() - Method in interface sprouts.Problem
Logs the problem as a Logger.info(java.lang.String) message to the default logger of the implementing class.
logAsTrace() - Method in interface sprouts.Problem
Logs the problem as a Logger.trace(java.lang.String) message to the default logger of the implementing class.
logAsWarning() - Method in interface sprouts.Problem
Logs the problem as a Logger.warn(java.lang.String) message to the default logger of the implementing class.
logTo(BiConsumer<String, Throwable>) - Method in interface sprouts.Problem
Allows you to log the problem to a custom logger of your choice, by supplying a BiConsumer which takes a string message as the first argument and a Throwable as the second argument.

M

makeDistinct() - Method in class sprouts.impl.TupleImpl
 
makeDistinct() - Method in interface sprouts.Tuple
Returns a new tuple of unique items, meaning that all duplicates in the original tuple are absent in the returned tuple.
makeDistinct() - Method in interface sprouts.Vars
Removes all duplicate properties from this list of properties.
map(Function<T, T>) - Method in interface sprouts.Maybe
If the item is present, applies the provided mapping function to it, and returns it wrapped in a new Maybe instance.
map(Function<T, T>) - Method in interface sprouts.Tuple
Returns a new tuple of items where each item is the result of applying the supplied mapper Function to the corresponding item in this tuple.
map(Function<T, T>) - Method in interface sprouts.Val
If the item is present, applies the provided mapping function to it, and returns it wrapped in a new Val instance.
map(Function<T, T>) - Method in interface sprouts.Vals
Use this for mapping a list of properties to another list of properties.
map(Function<T, T>) - Method in interface sprouts.Var
If the item is present, then this applies the provided mapping function to it, and return it wrapped in a new Var instance.
map(Function<T, T>) - Method in interface sprouts.Vars
Use this for mapping a list of properties to another list of properties.
map(Function<V, V>) - Method in interface sprouts.Result
Safely maps the value of this result to a new value of the same type even if an exception is thrown during the mapping process, in which case the exception is caught and a new result is returned with the exception as a problem.
mapTo(Class<U>, Function<T, U>) - Method in interface sprouts.Vals
Use this for mapping a list of properties to another list of properties.
mapTo(Class<U>, Function<T, U>) - Method in interface sprouts.Vars
Use this for mapping a list of properties to another list of properties.
mapTo(Class<U>, Function<T, U>) - Method in interface sprouts.Var
If the item is present, applies the provided mapping function to it, and returns it wrapped in a new Var instance.
mapTo(Class<U>, Function<T, U>) - Method in interface sprouts.Maybe
If the item is present, applies the provided mapping function to it, and returns it wrapped in a new Maybe instance.
mapTo(Class<U>, Function<T, U>) - Method in interface sprouts.Tuple
Returns a new tuple of items where each item is mapped to a new item of the specified type using the supplied mapper function.
mapTo(Class<U>, Function<T, U>) - Method in interface sprouts.Val
If the item is present, applies the provided mapping function to it, and returns it wrapped in a new Val instance.
mapTo(Class<U>, Function<V, U>) - Method in interface sprouts.Result
Safely maps the value of this result to a new value of a different type even if an exception is thrown during the mapping process, in which case the exception is caught and a new result is returned with the exception as a problem.
Maybe<T> - Interface in sprouts
The Maybe interface represents a null safe view on a thing which may or may not exist, and it serves as a general blue-print for nomadic types like the Result type.
maybeOf(Maybe<T>) - Method in interface sprouts.impl.SproutsFactory
 
maybeOf(T) - Method in interface sprouts.impl.SproutsFactory
 
maybeOfNull(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
maybeOfNullable(Class<T>, T) - Method in interface sprouts.impl.SproutsFactory
 
maybeOfNullable(Maybe<T>) - Method in interface sprouts.impl.SproutsFactory
 
MissingItemException - Exception Class in sprouts
A checked exception thrown when an item is missing from a Maybe object.
MissingItemException(String, Tuple<Problem>) - Constructor for exception class sprouts.MissingItemException
Creates a new MissingItemException with the given message anf tuple of problems describing the cause of the exception.

N

NEW_THREAD - Static variable in interface sprouts.Event.Executor
A Event.Executor that executes the given Runnable on a new thread.
newValues() - Method in interface sprouts.ValsDelegate
Exposes a read only property list after the change has been applied, which contains the new values in the property list.
next() - Method in class sprouts.Version
Creates a new version object with the same lineage as this one, but with a succession number incremented by one.
none(Predicate<Pair<K, V>>) - Method in interface sprouts.Association
Checks if none of the key/value pairs in this association match the given predicate and returns true if none of them do, otherwise false.
none(Predicate<Val<T>>) - Method in interface sprouts.Vals
Check if none of the properties in this list match the given predicate.
none(Predicate<T>) - Method in interface sprouts.Tuple
Check if none of the items in this tuple match the given predicate.
NONE - Enum constant in enum class sprouts.SequenceChange
Indicates that the Vars instance was not mutate (But the change event was still triggered).
NONE - Enum constant in enum class sprouts.SingleChange
No change occurred.
numberOfChangeListeners() - Method in class sprouts.impl.PropertyChangeListeners
Returns the number of change listeners that are currently registered.

O

observable() - Method in interface sprouts.Event
Creates a weakly referenced Observable that can be used to subscribe to this Event by registering Observers that will be notified when the Event.fire() method is called.
Observable - Interface in sprouts
This represents an event that can be observed but not triggered.
Observer - Interface in sprouts
An observer is a callback that is executed when a sprouts Observable is triggered, usually in the form of an Event or property, like Val, Var, Vals or Vars.
observerOfWeak(O, Consumer<O>) - Method in class sprouts.impl.Sprouts
 
observerOfWeak(O, Consumer<O>) - Method in interface sprouts.impl.SproutsFactory
 
of(F, S) - Static method in class sprouts.Pair
A factory method for creating a new pair with the given values.
of(Class<T>) - Static method in interface sprouts.Tuple
Creates an empty tuple of non-nullable items from the supplied type.
of(Class<T>) - Static method in interface sprouts.Vals
Create a new empty Vals instance.
of(Class<T>) - Static method in interface sprouts.Vars
Creates an empty list of non-nullable properties from the supplied type.
of(Class<T>, T, T) - Static method in enum class sprouts.SingleChange
 
of(Class<T>, Iterable<Val<T>>) - Static method in interface sprouts.Vals
Create a new Vals instance from the iterable of properties.
of(Class<T>, Iterable<Var<T>>) - Static method in interface sprouts.Vars
Creates a list of non-nullable properties from the supplied type and iterable of values.
of(Class<T>, Iterable<T>) - Static method in interface sprouts.Tuple
Creates an immutable tuple of non-nullable items from the supplied type and iterable of values.
of(Class<T>, Maybe<T>...) - Static method in interface sprouts.Tuple
Creates an immutable tuple of non-nullable items from the supplied type and vararg values.
of(Class<T>, Val<T>...) - Static method in interface sprouts.Vals
Create a new Vals instance from the given varargs of properties.
of(Class<T>, Vals<T>) - Static method in interface sprouts.Vals
Create a new unconnected Vals instance from the given property list.
of(Class<T>, Var<T>...) - Static method in interface sprouts.Vars
Creates a list of non-nullable properties from the supplied type and vararg values.
of(Class<T>, T...) - Static method in interface sprouts.Tuple
Creates an immutable tuple of non-nullable items from the supplied type and values.
of(Class<T>, T...) - Static method in interface sprouts.Vals
Create a new Vals instance from the supplied type and items array.
of(Class<T>, T...) - Static method in interface sprouts.Vars
Creates a list of non-nullable properties from the supplied type and values.
of(Class<T>, V) - Static method in interface sprouts.Var
This factory method returns a Var describing the given non-null item similar to Optional.of(Object) and its type which may also be a super type of the supplied item.
of(Class<V>) - Static method in interface sprouts.Result
A factory method for creating an empty result without a value and no problems.
of(Class<V>, V) - Static method in interface sprouts.Result
A factory method for creating a result with a potentially null value but no problems.
of(Class<V>, V, Iterable<Problem>) - Static method in interface sprouts.Result
A factory method for creating a result with a potentially null value and a list of problems.
of(Class<V>, V, Problem) - Static method in interface sprouts.Result
A factory method for creating an optional result with a single problem.
of(Class<V>, Iterable<Problem>) - Static method in interface sprouts.Result
A factory method for creating an empty result and a list of problems.
of(Class<V>, Problem) - Static method in interface sprouts.Result
A factory method for creating a result with a single problem.
of(Exception) - Static method in interface sprouts.Problem
A factory method for creating a problem from an Exception.
of(Object, String, String) - Static method in interface sprouts.Problem
A factory method for creating a problem with a title, a description and a reporter.
of(String) - Static method in interface sprouts.Problem
A factory method for creating a problem with a title (and no description).
of(String, String) - Static method in interface sprouts.Problem
A factory method for creating a problem with a title and a description.
of(Function<A, B>, BiFunction<A, B, A>) - Static method in interface sprouts.Lens
Creates a new lens from the given getter and wither functions, where the first function serves as an implementation of Lens.getter(Object) and the second function serves as an implementation of Lens.wither(Object, Object).
of(Map.Entry<F, S>) - Static method in class sprouts.Pair
A factory method for creating a new pair from a Map.Entry.
of(K, V) - Static method in interface sprouts.Association
Creates a new association from the given key-value pair.
of(Maybe<T>) - Static method in interface sprouts.Maybe
A factory method for creating a new Maybe instance which is effectively an immutable copy of the given Maybe.
of(Maybe<T>, Maybe<T>...) - Static method in interface sprouts.Tuple
Creates an immutable tuple of non-nullable items from one or more non-nullable items wrapped by Maybe properties.
of(Tuple<?>, SequenceChange, int, int) - Static method in class sprouts.impl.SequenceDiff
Creates a new SequenceDiff instance from a source Tuple instance and how it was changed to a new state.
of(Val<T>) - Static method in interface sprouts.Val
A factory method for creating a new Val instance which is effectively an immutable copy of the given Val.
of(Val<T>, Val<T>...) - Static method in interface sprouts.Vals
Create a new Vals instance from the supplied properties.
of(Var<T>, Var<T>...) - Static method in interface sprouts.Vars
Creates a list of non-nullable properties from one or more non-nullable properties.
of(T) - Static method in interface sprouts.Maybe
This factory method returns a Maybe describing the given non-null item similar to Optional.of(Object), but specifically designed for use with Swing-Tree.
of(T) - Static method in interface sprouts.Val
This factory method returns a Val describing the given non-null item similar to Optional.of(Object), but specifically designed for use with Swing-Tree.
of(T) - Static method in interface sprouts.Var
This factory method returns a Var describing the given non-null item similar to Optional.of(Object), but specifically designed to be used for MVVM.
of(T, T...) - Static method in interface sprouts.Tuple
Creates an immutable tuple of non-nullable items from one or more non-null items.
of(T, T...) - Static method in interface sprouts.Vals
Create a new Vals instance from the supplied items.
of(T, T...) - Static method in interface sprouts.Vars
Creates a list of non-nullable properties from one or more non-null values.
of(V) - Static method in interface sprouts.Result
A factory method for creating a result with a non-null value and no problems.
of(V, Iterable<Problem>) - Static method in interface sprouts.Result
A factory method for creating a result with a non-null value and a list of problems.
ofList(Class<V>, List<V>) - Static method in interface sprouts.Result
A factory method for creating a list based result from the given list.
ofList(Class<V>, List<V>, Iterable<Problem>) - Static method in interface sprouts.Result
A factory method for creating a list based result from the given list and problems.
ofList(Class<V>, Problem) - Static method in interface sprouts.Result
A factory method for creating a list based result with a single problem.
ofNull(Class<T>) - Static method in interface sprouts.Maybe
A more concise version of Maybe.ofNullable(Class, Object) which is equivalent to Var.ofNullable(type, null).
ofNull(Class<T>) - Static method in interface sprouts.Val
A more concise version of Val.ofNullable(Class, Object) which is equivalent to Var.ofNullable(type, null).
ofNull(Class<T>) - Static method in interface sprouts.Var
A more concise version of Var.ofNullable(Class, Object) which is equivalent to Var.ofNullable(type, null).
ofNullable(Class<T>) - Static method in interface sprouts.Tuple
Creates an empty tuple of nullable items from the supplied type.
ofNullable(Class<T>) - Static method in interface sprouts.Vals
Create a new empty nullable Vals instance.
ofNullable(Class<T>) - Static method in interface sprouts.Vars
Creates an empty list of nullable properties from the supplied type.
ofNullable(Class<T>, T) - Static method in interface sprouts.Maybe
Use this factory method to create a new Maybe instance whose item may or may not be null.
ofNullable(Class<T>, T) - Static method in interface sprouts.Val
Use this factory method to create a new Val instance whose item may or may not be null.
ofNullable(Class<T>, T) - Static method in interface sprouts.Var
Use this factory method to create a new Var instance whose item may or may not be null.
ofNullable(Class<T>, T...) - Static method in interface sprouts.Tuple
Creates an immutable tuple of nullable items from the supplied type and values.
ofNullable(Class<T>, T...) - Static method in interface sprouts.Vals
Create a new Vals instance from the given items.
ofNullable(Class<T>, T...) - Static method in interface sprouts.Vars
Creates a list of nullable properties from the supplied type and values.
ofNullable(Class<T>, Iterable<T>) - Static method in interface sprouts.Tuple
Creates an immutable tuple of nullable items from the supplied type and iterable of values.
ofNullable(Class<T>, Iterable<Var<T>>) - Static method in interface sprouts.Vars
Creates a list of nullable properties from the supplied type and iterable of values.
ofNullable(Class<T>, Maybe<T>...) - Static method in interface sprouts.Tuple
Creates an immutable tuple of nullable items from the supplied type and varargs items.
ofNullable(Class<T>, Val<T>...) - Static method in interface sprouts.Vals
Create a new Vals instance from the given items.
ofNullable(Class<T>, Vals<T>) - Static method in interface sprouts.Vals
Create a new unconnected Vals instance from the given property list.
ofNullable(Class<T>, Var<T>...) - Static method in interface sprouts.Vars
Creates a list of nullable properties from the supplied type and varargs properties.
ofNullable(Maybe<T>, Maybe<T>...) - Static method in interface sprouts.Tuple
Creates an immutable tuple of nullable items from the supplied items.
ofNullable(Maybe<T>) - Static method in interface sprouts.Maybe
A factory method for creating a new Maybe instance which is effectively an immutable copy of the given Maybe.
ofNullable(Val<T>) - Static method in interface sprouts.Val
A factory method for creating a new Val instance which is effectively an immutable copy of the given Val.
ofNullable(Val<T>, Val<T>...) - Static method in interface sprouts.Vals
Create a new Vals instance from the given items.
ofNullable(Var<T>, Var<T>...) - Static method in interface sprouts.Vars
Creates a list of nullable properties from the supplied properties.
ofTry(Class<V>, Supplier<V>) - Static method in interface sprouts.Result
A factory method for creating a result from a Supplier which may throw an exception.
ofWeak(O, BiConsumer<O, D>) - Static method in interface sprouts.Action
A factory method for creating a new Action instance with a weakly referenced owner.
ofWeak(O, Consumer<O>) - Static method in interface sprouts.Observer
A factory method for creating a new Observer instance with a weakly referenced owner.
oldValue() - Method in interface sprouts.ValDelegate
Exposes the old value of the property that was listened to in an Maybe wrapper.
oldValues() - Method in interface sprouts.ValsDelegate
Exposes a read only property list of old values which were removed from the property list.
onChange(Action<ValsDelegate<T>>) - Method in class sprouts.impl.PropertyListChangeListeners
 
onChange(Action<ValsDelegate<T>>) - Method in interface sprouts.Viewables
Similar to Viewable.onChange(Channel, Action) but for a list of properties.
onChange(Channel, Action<ValDelegate<T>>) - Method in class sprouts.impl.PropertyChangeListeners
 
onChange(Channel, Action<ValDelegate<T>>) - Method in interface sprouts.Viewable
Use this to register an observer lambda for a particular Channel, which will be called whenever the item viewed by this Viewable changes through the Var::set(Channel, T) method.
onChange(Observer) - Method in class sprouts.impl.PropertyChangeListeners
 
onChange(Observer) - Method in class sprouts.impl.PropertyListChangeListeners
 
or(Supplier<? extends Maybe<? extends T>>) - Method in interface sprouts.Maybe
If an item is present, returns a Maybe describing the item, otherwise returns a Maybe produced by the supplying function.
or(Supplier<? extends Maybe<? extends T>>) - Method in interface sprouts.Val
If an item is present, returns a Val describing the item, otherwise returns a Val produced by the supplying function.
orElse(T) - Method in interface sprouts.Maybe
If an item is present, returns the item, otherwise returns other.
orElseGet(Supplier<? extends T>) - Method in interface sprouts.Maybe
If an item is present, returns the item, otherwise returns the result produced by the supplying function.
orElseNull() - Method in interface sprouts.Maybe
If an item is present, returns the item, otherwise returns null.
orElseNullable(T) - Method in interface sprouts.Maybe
If an item is present, returns the item, otherwise returns other.
orElseThrow() - Method in interface sprouts.Maybe
If an item is present, returns the item, otherwise throws a checked MissingItemException, requiring you to handle it explicitly in your code.
orElseThrowUnchecked() - Method in interface sprouts.Maybe
If an item is present, returns the item, otherwise throws an unchecked NoSuchElementException.
owner() - Method in interface sprouts.WeakAction
Returns an Optional containing the owner of this action.
owner() - Method in interface sprouts.WeakObserver
Returns an Optional containing the owner of this observer.

P

Pair<F,S> - Class in sprouts
An immutable value object representing a pair of two generic values.
peekAtEachProblem(Consumer<Problem>) - Method in interface sprouts.Result
Allows you to peek at each individual problem associated with this result through a Consumer which receives a single problem at a time.
peekAtProblems(Consumer<Tuple<Problem>>) - Method in interface sprouts.Result
Allows you to peek at the list of problems associated with this result through a Consumer which receives the list of all problems.
popAt(int) - Method in interface sprouts.Vars
Removes and returns the property at the specified index.
popAt(int, int) - Method in interface sprouts.Vars
Removes and returns the sequence of properties at the specified index.
popFirst() - Method in interface sprouts.Vars
Removes the first property from the list and returns it.
popFirst(int) - Method in interface sprouts.Vars
Removes the first count number of properties from the list and returns them in a new list.
popIf(Predicate<Var<T>>) - Method in interface sprouts.Vars
Removes all properties from the list for which the provided predicate returns true and returns them in a new list.
popIfItem(Predicate<T>) - Method in interface sprouts.Vars
Removes all properties from the list for whose items the provided predicate returns true and returns them in a new list.
popLast() - Method in interface sprouts.Vars
Removes the last property from the list and returns it.
popLast(int) - Method in interface sprouts.Vars
Removes count number of properties from the end of the list and returns them in a new list.
popRange(int, int) - Method in interface sprouts.Vars
Remove and return all elements within the range from inclusive and to exclusive.
previous() - Method in class sprouts.Version
Creates a new version object with the same lineage as this one, but with a succession number decremented by one.
printStackTrace() - Method in exception class sprouts.MissingItemException
 
printTo(PrintWriter) - Method in interface sprouts.Problem
Prints the title and description and optionally the exception to the given writer.
printTo(Writer) - Method in interface sprouts.Problem
Prints the title and description and optionally the exception to the given writer.
printToSystemOut() - Method in interface sprouts.Problem
Prints the title and description and optionally the exception to the standard output stream.
Problem - Interface in sprouts
A problem is a wrapper for information describing an issue that can be reported and attached to a Result.
problems() - Method in exception class sprouts.MissingItemException
Returns a Tuple of all problems that caused this exception.
problems() - Method in interface sprouts.Result
Exposes a list of Problems associated with this result item.
PropertyChangeListeners<T> - Class in sprouts.impl
This class is technically an internal class and should not be used directly.
PropertyChangeListeners() - Constructor for class sprouts.impl.PropertyChangeListeners
 
PropertyChangeListeners(PropertyChangeListeners<T>) - Constructor for class sprouts.impl.PropertyChangeListeners
 
PropertyListChangeListeners<T> - Class in sprouts.impl
 
PropertyListChangeListeners() - Constructor for class sprouts.impl.PropertyListChangeListeners
 
put(K, V) - Method in interface sprouts.Association
Returns a new association that is the same as this one but with the given key associated with the given value.
put(Pair<? extends K, ? extends V>) - Method in interface sprouts.Association
Returns a new association that is the same as this one but with the given key-value pair added to it through a Pair instance, where the first value of the pair is the key and the second value is the value.
putAll(Collection<Pair<? extends K, ? extends V>>) - Method in interface sprouts.Association
Returns a new association with all the key-value pairs from the supplied Collection of Pair instances added to it.
putAll(Map<? extends K, ? extends V>) - Method in interface sprouts.Association
Returns a new association with all the key-value pairs from the supplied Map added to it.
putAll(Set<Pair<? extends K, ? extends V>>) - Method in interface sprouts.Association
Returns a new association with all the key-value pairs from the supplied Set of Pair instances added to it.
putAll(Stream<Pair<? extends K, ? extends V>>) - Method in interface sprouts.Association
Returns a new association with all the key-value pairs from the supplied Stream of Pair instances added to it.
putAll(Association<? extends K, ? extends V>) - Method in interface sprouts.Association
Returns a new association that is the same as this one but with all the key-value pairs from the given association added to it.
putAll(Pair<? extends K, ? extends V>...) - Method in interface sprouts.Association
Returns a new association with all the key-value pairs from the supplied array of Pairs added to it, where the Pair.first() is the key and the Pair.second() is the value.
putAll(Tuple<Pair<? extends K, ? extends V>>) - Method in interface sprouts.Association
Returns a new association with all the key-value pairs of the supplied Tuple of Pair instances added to it, where the Pair.first() object of each pair is the key and the Pair.second() object is the value.
putIfAbsent(K, V) - Method in interface sprouts.Association
If the specified key is not already associated with a value associates it with the given value and returns null, else returns the current value.

R

remove(K) - Method in interface sprouts.Association
Returns a new association that is the same as this one but without the given key.
remove(Maybe<T>) - Method in interface sprouts.Tuple
Removes every occurrence of the item of the supplied Maybe from the tuple.
remove(Var<T>) - Method in interface sprouts.Vars
Removes every occurrence of the provided property from the list.
remove(T) - Method in interface sprouts.Tuple
Removes every occurrence of the supplied item from the tuple.
remove(T) - Method in interface sprouts.Vars
Removes every occurrence of the supplied item from the list.
REMOVE - Enum constant in enum class sprouts.SequenceChange
Indicates that a value was removed from the Vars instance.
removeAll(Iterable<T>) - Method in interface sprouts.Tuple
Removes all the items of the provided iterable from the tuple.
removeAll(Set<? extends K>) - Method in interface sprouts.Association
Returns a new association that is the same as this one but without any of the keys in the supplied set.
removeAll(Tuple<T>) - Method in class sprouts.impl.TupleImpl
 
removeAll(Tuple<T>) - Method in interface sprouts.Tuple
Creates a new tuple of items without the items of the provided tuple of items.
removeAll(Vals<T>) - Method in interface sprouts.Vars
Removes all properties from the list that are contained in the provided list of properties.
removeAll(T...) - Method in interface sprouts.Tuple
Removes all the items of the provided array from the tuple.
removeAll(T...) - Method in interface sprouts.Vars
Removes all properties from the list whose items are contained in the provided array of properties and returns them in a new list.
removeAt(int) - Method in interface sprouts.Tuple
Removes the item at the specified index.
removeAt(int) - Method in interface sprouts.Vars
Removes the property at the specified index.
removeAt(int, int) - Method in interface sprouts.Tuple
Removes the sequence of items at the specified index.
removeAt(int, int) - Method in interface sprouts.Vars
Removes the sequence of properties at the specified index.
removeFirst() - Method in interface sprouts.Tuple
Removes the first item from the tuple, or does nothing if the tuple is empty.
removeFirst() - Method in interface sprouts.Vars
Removes the first property from the list, or does nothing if the list is empty.
removeFirst(int) - Method in interface sprouts.Tuple
Removes the first count number of items from the tuple.
removeFirst(int) - Method in interface sprouts.Vars
Removes the first count number of properties from the list.
removeFirstFound(Maybe<T>) - Method in interface sprouts.Tuple
Removes the tem of the provided Maybe from the tuple.
removeFirstFound(Var<T>) - Method in interface sprouts.Vars
Removes the provided property from the list at its first found occurrence.
removeFirstFound(T) - Method in interface sprouts.Tuple
Removes the first found item in the tuple that is Objects.equals(Object, Object) to the supplied item.
removeFirstFound(T) - Method in interface sprouts.Vars
Removes the first found property containing the provided item from the list.
removeFirstFoundIfNonNull(T) - Method in interface sprouts.Tuple
Removes the first found item in the tuple that is Objects.equals(Object, Object) to the supplied item, or does nothing if the item is null.
removeFirstFoundOrThrow(Maybe<T>) - Method in interface sprouts.Tuple
Removes the item of the provided Maybe from the tuple.
removeFirstFoundOrThrow(Var<T>) - Method in interface sprouts.Vars
Removes the first found occurrence of the provided property from the list.
removeFirstFoundOrThrow(T) - Method in interface sprouts.Tuple
Removes the first found item in the tuple that is Objects.equals(Object, Object) to the supplied item, or throws a NoSuchElementException if the item is not found.
removeFirstFoundOrThrow(T) - Method in interface sprouts.Vars
Removes the first occurrence of a property containing the supplied item from the list.
removeIf(Predicate<Var<T>>) - Method in interface sprouts.Vars
Removes all properties from the list for which the provided predicate returns true.
removeIf(Predicate<T>) - Method in interface sprouts.Tuple
Removes all items from the tuple for which the provided predicate returns true.
removeIfItem(Predicate<T>) - Method in interface sprouts.Vars
Removes all properties from the list for whose items the provided predicate returns true.
removeIfNonNull(T) - Method in interface sprouts.Tuple
Removes every occurrence of the supplied item from the tuple, or does nothing if the supplied item is null.
removeLast() - Method in interface sprouts.Tuple
Removes the last item from the tuple, or does nothing if the tuple is empty.
removeLast() - Method in interface sprouts.Vars
Removes the last property from the list, or does nothing if the list is empty.
removeLast(int) - Method in interface sprouts.Tuple
Removes count number of items from the end of the tuple.
removeLast(int) - Method in interface sprouts.Vars
Removes count number of properties from the end of the list.
removeOrThrow(Var<T>) - Method in interface sprouts.Vars
Removes every occurrence of the provided property from the list.
removeOrThrow(T) - Method in interface sprouts.Vars
Removes every property containing the provided item from the list.
removeRange(int, int) - Method in class sprouts.impl.TupleImpl
 
removeRange(int, int) - Method in interface sprouts.Tuple
Remove all elements within the range from inclusive and to exclusive.
removeRange(int, int) - Method in interface sprouts.Vars
Remove all elements within the range from inclusive and to exclusive.
replace(K, V) - Method in interface sprouts.Association
Returns a new association where an existing key-value pair is replaced with the given key-value pair if the key is present in this association.
replace(Pair<? extends K, ? extends V>) - Method in interface sprouts.Association
Returns a new association where an existing key-value pair is replaced with the given key-value pair if the key is present in this association.
replaceAll(Collection<Pair<? extends K, ? extends V>>) - Method in interface sprouts.Association
Returns a new association where all existing key-value pairs from this association are replaced by those in the supplied Collection of Pair instances.
replaceAll(Map<? extends K, ? extends V>) - Method in interface sprouts.Association
Returns a new association where all existing key-value pairs from this association are replaced by those in the supplied Map.
replaceAll(Set<Pair<? extends K, ? extends V>>) - Method in interface sprouts.Association
Returns a new association where all existing key-value pairs from this association are replaced by those in the supplied Set of Pair instances.
replaceAll(Stream<Pair<? extends K, ? extends V>>) - Method in interface sprouts.Association
Returns a new association where all existing key-value pairs from this association are replaced by those in the supplied Stream of Pair instances.
replaceAll(Association<? extends K, ? extends V>) - Method in interface sprouts.Association
Returns a new association where all existing key-value pairs from this association are replaced by those in the supplied association.
replaceAll(Pair<? extends K, ? extends V>...) - Method in interface sprouts.Association
Returns a new association where all existing key-value pairs from this association are replaced by those in the supplied array of Pair instances.
replaceAll(Tuple<Pair<? extends K, ? extends V>>) - Method in interface sprouts.Association
Returns a new association where all existing key-value pairs from this association are replaced by those in the supplied Tuple of Pair instances.
reporter() - Method in interface sprouts.Problem
A problem object may or may not have a reporter attached to it.
Result<V> - Interface in sprouts
A result is very similar to an Optional in that it can either contain a value or not, with the difference being that a result can also contain a list of Problems which describe what went wrong in the process of obtaining the value wrapped by the result.
resultOf(Class<V>) - Method in class sprouts.impl.Sprouts
 
resultOf(Class<V>) - Method in interface sprouts.impl.SproutsFactory
 
resultOf(Class<V>, V) - Method in class sprouts.impl.Sprouts
 
resultOf(Class<V>, V) - Method in interface sprouts.impl.SproutsFactory
 
resultOf(Class<V>, V, Iterable<Problem>) - Method in class sprouts.impl.Sprouts
 
resultOf(Class<V>, V, Iterable<Problem>) - Method in interface sprouts.impl.SproutsFactory
 
resultOf(Class<V>, V, Problem) - Method in class sprouts.impl.Sprouts
 
resultOf(Class<V>, V, Problem) - Method in interface sprouts.impl.SproutsFactory
 
resultOf(Class<V>, Iterable<Problem>) - Method in class sprouts.impl.Sprouts
 
resultOf(Class<V>, Iterable<Problem>) - Method in interface sprouts.impl.SproutsFactory
 
resultOf(Class<V>, Problem) - Method in class sprouts.impl.Sprouts
 
resultOf(Class<V>, Problem) - Method in interface sprouts.impl.SproutsFactory
 
resultOf(V) - Method in class sprouts.impl.Sprouts
 
resultOf(V) - Method in interface sprouts.impl.SproutsFactory
 
resultOf(V, Iterable<Problem>) - Method in class sprouts.impl.Sprouts
 
resultOf(V, Iterable<Problem>) - Method in interface sprouts.impl.SproutsFactory
 
resultOfList(Class<V>, List<V>) - Method in class sprouts.impl.Sprouts
 
resultOfList(Class<V>, List<V>) - Method in interface sprouts.impl.SproutsFactory
 
resultOfList(Class<V>, List<V>, Iterable<Problem>) - Method in class sprouts.impl.Sprouts
 
resultOfList(Class<V>, List<V>, Iterable<Problem>) - Method in interface sprouts.impl.SproutsFactory
 
resultOfList(Class<V>, Problem) - Method in class sprouts.impl.Sprouts
 
resultOfList(Class<V>, Problem) - Method in interface sprouts.impl.SproutsFactory
 
resultOfTry(Class<V>, Supplier<V>) - Method in class sprouts.impl.Sprouts
 
resultOfTry(Class<V>, Supplier<V>) - Method in interface sprouts.impl.SproutsFactory
 
RETAIN - Enum constant in enum class sprouts.SequenceChange
Indicates that one or more values remain in the Vars instance.
retainAll(Iterable<T>) - Method in interface sprouts.Tuple
Removes all items from this tuple that are not contained in the provided iterable of items.
retainAll(Set<? extends K>) - Method in interface sprouts.Association
Returns a new association where only those key-value pairs are kept that have a key present in the supplied set.
retainAll(Tuple<T>) - Method in class sprouts.impl.TupleImpl
 
retainAll(Tuple<T>) - Method in interface sprouts.Tuple
Retains only the items in this tuple that are contained in the provided tuple of items.
retainAll(Vals<T>) - Method in interface sprouts.Vars
Removes all properties from this list that are not contained in the provided list of properties.
retainAll(T...) - Method in interface sprouts.Tuple
Removes all items from this tuple whose items are not contained in the provided array of items.
retainAll(T...) - Method in interface sprouts.Vars
Removes all properties from this list whose items are not contained in the provided array of items.
retainIf(Predicate<Var<T>>) - Method in interface sprouts.Vars
Removes all properties from this list which do not satisfy the provided predicate.
retainIf(Predicate<T>) - Method in interface sprouts.Tuple
Creates a new tuple of items where only the items that match the predicate are retained.
REVERSE - Enum constant in enum class sprouts.SequenceChange
Indicates tht the order of the elements in the Vars instance was reversed.
reversed() - Method in class sprouts.impl.TupleImpl
 
reversed() - Method in interface sprouts.Tuple
Returns a new tuple with the exact same items as this tuple, but in reverse order.
reversed() - Method in interface sprouts.Vars
Reverse the order of the properties in this list.

S

SAME_THREAD - Static variable in interface sprouts.Event.Executor
A basic Event.Executor that executes the given Runnable on the same thread.
second() - Method in class sprouts.Pair
Returns the second value of this pair, which corresponds to the second parameter of the Pair.of(Object, Object) factory method that created this pair.
SequenceChange - Enum Class in sprouts
Describes how a Vars instance was mutated.
SequenceDiff - Class in sprouts.impl
A SequenceDiff object holds meta information about a Tuple instance that describes how the Tuple was transformed from its previous state.
SequenceDiffOwner - Interface in sprouts.impl
This interface is a sort of marker interface for Tuple implementations that can provide a SequenceDiff object that describes the difference between the current tuple and a previous one (if any), in terms of a SequenceChange, the index of the change, and the number of changes.
set(Channel, T) - Method in interface sprouts.Var
This method provides the ability to modify the state of the wrapper from a custom channel of your choice, usually one of the channels defined in From.
set(T) - Method in interface sprouts.Var
This method provides the ability to modify the state of the wrapper from the view model channel (see From.VIEW_MODEL).
SET - Enum constant in enum class sprouts.SequenceChange
Indicates that a value was updated in the Vars instance.
setAllAt(int, Iterable<T>) - Method in interface sprouts.Tuple
Iterates over the supplied values, and sets them in this tuple as items starting at the specified index.
setAllAt(int, Iterable<T>) - Method in interface sprouts.Vars
Iterates over the supplied values, and sets them in this list as properties starting at the specified index.
setAllAt(int, Maybe<T>...) - Method in interface sprouts.Tuple
Creates an updated tuple of items where the items of the provided Maybe objects are replacing the items in this tuple, starting at the specified index.
setAllAt(int, Tuple<T>) - Method in class sprouts.impl.TupleImpl
 
setAllAt(int, Tuple<T>) - Method in interface sprouts.Tuple
Creates and returns a new tuple from this one where all items from the provided tuple of items, are set starting at the specified index, effectively replacing the items in the specified range of this tuple in the new tuple.
setAllAt(int, Vals<T>) - Method in interface sprouts.Vars
Iterates over the supplied properties, and sets their items in this list in the form of new property instances starting at the specified index.
setAllAt(int, Vars<T>) - Method in interface sprouts.Vars
Sets all properties from the provided list of properties to this list at a specified index.
setAllAt(int, T...) - Method in interface sprouts.Tuple
Wraps each provided item in a property and overwrites the existing items in this tuple, starting at the specified index.
setAllAt(int, T...) - Method in interface sprouts.Vars
Wraps each provided item in a property and overwrites the existing properties in this property list, starting at the specified index.
setAt(int, int, Maybe<T>) - Method in interface sprouts.Tuple
Places the provided property in the specified sequence, effectively replacing the items at the specified sequence with the given property.
setAt(int, int, Var<T>) - Method in interface sprouts.Vars
Places the provided property in the specified sequence, effectively replacing the properties at the specified sequence with the given property.
setAt(int, int, T) - Method in interface sprouts.Tuple
Creates a new tuple of items where the items starting at the specified index and ending at the specified index plus the size of the sequence are replaced with the supplied item.
setAt(int, int, T) - Method in interface sprouts.Vars
Wraps the specified value in distinct properties and sets them in the specified sequence, effectively replacing the property at that sequence.
setAt(int, Maybe<T>) - Method in interface sprouts.Tuple
Places the item of the supplied Maybe at the specified index, effectively replacing the existing item at that index.
setAt(int, Val<T>) - Method in interface sprouts.Vars
Wraps the item of the provided Val in a new Var property and sets it at the specified index effectively replacing the property at that index.
setAt(int, Var<T>) - Method in interface sprouts.Vars
Places the provided property at the specified index, effectively replacing the property at that index.
setAt(int, T) - Method in class sprouts.impl.TupleImpl
 
setAt(int, T) - Method in interface sprouts.Tuple
Creates a new tuple of items where the item at the specified index is replaced with the supplied item.
setAt(int, T) - Method in interface sprouts.Vars
Wraps the provided value in a property and sets it at the specified index effectively replacing the property at that index.
setFactory(SproutsFactory) - Static method in class sprouts.impl.Sprouts
Sets the factory to be used by the various factory methods of this API like Var.of(Object), Vals.of(Object, Object[]), Result.of(Object)...
setRange(int, int, Maybe<T>) - Method in interface sprouts.Tuple
Places the provided property in the specified range, effectively replacing the items in the specified range with the given property.
setRange(int, int, Var<T>) - Method in interface sprouts.Vars
Places the provided property in the specified range, effectively replacing the properties in the specified range with the given property.
setRange(int, int, T) - Method in interface sprouts.Tuple
Wraps the specified value in distinct items and sets them in the specified range, effectively replacing the items in the specified range.
setRange(int, int, T) - Method in interface sprouts.Vars
Wraps the specified value in distinct properties and sets them in the specified range, effectively replacing the properties in the specified range.
signature() - Method in class sprouts.impl.SequenceDiff
The signature of this SequenceDiff instance.
SingleChange - Enum Class in sprouts
A set of constants that describe how a property item has changed.
size() - Method in interface sprouts.Association
Returns the number of key-value pairs in this association.
size() - Method in class sprouts.impl.SequenceDiff
The size of the difference is the number of items that were affected by the change in the Tuple.
size() - Method in class sprouts.impl.TupleImpl
 
size() - Method in interface sprouts.Tuple
Exposes the size of the tuple of items, which is the number of items in the tuple.
size() - Method in interface sprouts.Vals
Exposes the size of the list of properties, which is the number of properties in the list.
slice(int, int) - Method in class sprouts.impl.TupleImpl
 
slice(int, int) - Method in interface sprouts.Tuple
Returns a new tuple of items consisting of the items in the range from inclusive and to exclusive.
sliceAt(int, int) - Method in interface sprouts.Tuple
Returns the sequence of items at the specified index with the specified size in a new tuple.
sliceFirst(int) - Method in interface sprouts.Tuple
Removes the first count number of items from the tuple and returns them in a new tuple.
sliceLast(int) - Method in interface sprouts.Tuple
Removes count number of items from the end of the tuple and returns them in a new tuple.
sort() - Method in interface sprouts.Tuple
Sorts the tuple of items using the natural ordering of the items.
sort() - Method in interface sprouts.Vars
Sorts the list of properties using the natural ordering of the properties.
sort(Comparator<T>) - Method in class sprouts.impl.TupleImpl
 
sort(Comparator<T>) - Method in interface sprouts.Tuple
Use this for sorting the tuple of items.
sort(Comparator<T>) - Method in interface sprouts.Vars
Use this for sorting the list of properties.
SORT - Enum constant in enum class sprouts.SequenceChange
Indicates that the elements in the Vars instance were sorted.
sprouts - package sprouts
This is the main package for the Sprouts property collections library designed to provide all necessary tools to implement common architectural design patterns like MVVM, MVI, MVL, based on data oriented programming principles (immutability, value objects, lenses, circular data flow, etc.).
Sprouts - Class in sprouts.impl
Exposes an API for configuring the SproutsFactory, which serves implementations of the various property types in the Sprouts library, like Event, Val, Var, Vals and Vars.
sprouts.impl - package sprouts.impl
WARNING: Do not depend on classes inside this package!
Everything in this package should be considered library-private.
SproutsFactory - Interface in sprouts.impl
Creates instances of the various property types in the Sprouts library.
stream() - Method in interface sprouts.Tuple
Turns this tuple of items into a stream of items which can be used for further functional processing.
stream() - Method in interface sprouts.Vals
Turns this list of properties into a stream of items which can be used for further functional processing.
subscribe(Observer) - Method in interface sprouts.Observable
Subscribes the given listener to this Observable so that it can be notified when something happens.
Subscriber - Interface in sprouts
A subscriber may either be an Observer or an Action and it is used as a marker interface to allow for both types to be identified, grouped and used interchangeably.
succession() - Method in class sprouts.Version
Exposes the succession number of this version object, which is a non-unique that is incremented or decremented by the Version.next() or Version.previous() methods.

T

title() - Method in interface sprouts.Problem
Every problem has a title, which serves as a short, descriptive identifier.
to(Function<B, C>, BiFunction<B, C, B>) - Method in interface sprouts.Lens
Combines this lens with a pair of getter and wither functions, to create a new lens that focuses on a more deeply nested field.
to(Lens<B, C>) - Method in interface sprouts.Lens
Composes this lens with another lens, creating a new lens that focuses on a more deeply nested field.
TO_NON_NULL_REFERENCE - Enum constant in enum class sprouts.SingleChange
The item changed from a null reference to a non-null reference.
TO_NULL_REFERENCE - Enum constant in enum class sprouts.SingleChange
The item changed from a non-null reference to a null reference.
toList() - Method in interface sprouts.Tuple
Converts this tuple of items to a JDK List of items and then returns the resulting list.
toList() - Method in interface sprouts.Vals
Converts this list of properties to a JDK List of items and then returns the resulting list.
toMap() - Method in interface sprouts.Association
Converts this association to a java.util.Map.
toMap() - Method in interface sprouts.Vals
A list of properties may be turned into a map of items where the keys are the ids of the properties and the values are the items of the properties.
This method performs this conversion and then returns the resulting map.
toOptional() - Method in interface sprouts.Maybe
Use this to turn this to an Optional which can be used to interact with the item wrapped by this Maybe in a more functional way.
toSet() - Method in interface sprouts.Tuple
Converts this tuple of items to a JDK Set of items and then returns the resulting set.
toSet() - Method in interface sprouts.Vals
Takes all the items in this list of properties and turns them into an immutable JDK Set of items.
toString() - Method in class sprouts.impl.PropertyChangeListeners
 
toString() - Method in class sprouts.impl.SequenceDiff
 
toString() - Method in class sprouts.impl.TupleImpl
 
toString() - Method in class sprouts.Pair
 
toString() - Method in class sprouts.Version
 
toValList() - Method in interface sprouts.Vals
Converts this list of properties to a JDK List of properties and then returns the resulting list.
toValMap() - Method in interface sprouts.Vals
A list of properties may be turned into a map of properties where the keys are the ids of the properties and the values are the properties themselves.
This method performs this conversion and then returns the resulting map.
toVals() - Method in interface sprouts.Vars
Create a copy of the current state of the list.
Tuple<T> - Interface in sprouts
An immutable collection of ordered items of the same type T (see Tuple.type()), whose items can be iterated over and accessed through their indices.
This class can be thought of as an immutable array with an API designed for functional programming and robust handling of null values.

TupleImpl<T> - Class in sprouts.impl
 
TupleImpl(boolean, Class<T>, Object, SequenceDiff) - Constructor for class sprouts.impl.TupleImpl
 
TupleImpl(boolean, Class<T>, List<T>) - Constructor for class sprouts.impl.TupleImpl
 
tupleOf(Class<T>) - Method in class sprouts.impl.Sprouts
 
tupleOf(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
tupleOf(Class<T>, Iterable<T>) - Method in class sprouts.impl.Sprouts
 
tupleOf(Class<T>, Iterable<T>) - Method in interface sprouts.impl.SproutsFactory
 
tupleOf(Class<T>, Maybe<T>...) - Method in class sprouts.impl.Sprouts
 
tupleOf(Class<T>, Maybe<T>...) - Method in interface sprouts.impl.SproutsFactory
 
tupleOf(Class<T>, T...) - Method in class sprouts.impl.Sprouts
 
tupleOf(Class<T>, T...) - Method in interface sprouts.impl.SproutsFactory
 
tupleOf(Maybe<T>, Maybe<T>...) - Method in class sprouts.impl.Sprouts
 
tupleOf(Maybe<T>, Maybe<T>...) - Method in interface sprouts.impl.SproutsFactory
 
tupleOf(T, T...) - Method in class sprouts.impl.Sprouts
 
tupleOf(T, T...) - Method in interface sprouts.impl.SproutsFactory
 
tupleOfNullable(Class<T>) - Method in class sprouts.impl.Sprouts
 
tupleOfNullable(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
tupleOfNullable(Class<T>, T...) - Method in class sprouts.impl.Sprouts
 
tupleOfNullable(Class<T>, T...) - Method in interface sprouts.impl.SproutsFactory
 
tupleOfNullable(Class<T>, Iterable<T>) - Method in class sprouts.impl.Sprouts
 
tupleOfNullable(Class<T>, Iterable<T>) - Method in interface sprouts.impl.SproutsFactory
 
tupleOfNullable(Class<T>, Maybe<T>...) - Method in class sprouts.impl.Sprouts
 
tupleOfNullable(Class<T>, Maybe<T>...) - Method in interface sprouts.impl.SproutsFactory
 
tupleOfNullable(Maybe<T>, Maybe<T>...) - Method in class sprouts.impl.Sprouts
 
tupleOfNullable(Maybe<T>, Maybe<T>...) - Method in interface sprouts.impl.SproutsFactory
 
type() - Method in class sprouts.impl.TupleImpl
 
type() - Method in interface sprouts.Maybe
This returns the type of the item wrapped by this Maybe which can be accessed by calling the Maybe.orElseThrow() method.
type() - Method in interface sprouts.Tuple
Exposes the common type of the items in this tuple.
The type of the items in this tuple is retrieved from the first Maybe in the tuple.
type() - Method in interface sprouts.ValDelegate
Exposes the type of the property that was listened to.
type() - Method in interface sprouts.Vals
Exposes the common type of the properties in this list.
The type of the properties in this list is retrieved from the first property in the list.
typeAsString() - Method in interface sprouts.Maybe
This method returns a String representation of the type of the wrapped item.

U

unsubscribe(Subscriber) - Method in class sprouts.impl.PropertyChangeListeners
 
unsubscribe(Subscriber) - Method in class sprouts.impl.PropertyListChangeListeners
 
unsubscribe(Subscriber) - Method in interface sprouts.Observable
Unsubscribes the given Subscriber from this Observable so that it will no longer be notified when something happens.
unsubscribeAll() - Method in class sprouts.impl.PropertyChangeListeners
 
unsubscribeAll() - Method in class sprouts.impl.PropertyListChangeListeners
 
unsubscribeAll() - Method in interface sprouts.Observable
Unsubscribes all listeners from this Observable.
update(Function<T, T>) - Method in interface sprouts.Var
A common use-case is to update the item of a property based on the current item.
update(Channel, Function<T, T>) - Method in interface sprouts.Var
A common use-case is to update the item of a property based on the current item.
updateNullable(Function<T, T>) - Method in interface sprouts.Var
A common use-case is to update the item of a property based on the current item, but this time the item can be null.
updateNullable(Channel, Function<T, T>) - Method in interface sprouts.Var
A common use-case is to update the item of a property based on the current item, but this time the item can be null.
Usage Example: - Search tag in interface sprouts.Lens
Section
using(Event.Executor) - Static method in interface sprouts.Event
Creates a new Event that can be observed, triggered and executed asynchronously on a custom event queue, thread pool or any other executor.

V

Val<T> - Interface in sprouts
A read only wrapper around an item which can be mapped to a weakly referenced Viewable to then be observed for changes using Actions registered through the Viewable.onChange(Channel, Action) method, where the Channel is used to distinguish between changes from different sources (usually application layers like the view model or the view).
Use Val.view() to access a simple no-op live view of the item of this property and register change listeners on it to react to state changes.
ValDelegate<T> - Interface in sprouts
A context object passed to the various types of change listeners registered on a property such as Val and Var.
valOf(Val<T>) - Method in class sprouts.impl.Sprouts
 
valOf(Val<T>) - Method in interface sprouts.impl.SproutsFactory
 
valOf(T) - Method in class sprouts.impl.Sprouts
 
valOf(T) - Method in interface sprouts.impl.SproutsFactory
 
valOfNull(Class<T>) - Method in class sprouts.impl.Sprouts
 
valOfNull(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
valOfNullable(Class<T>, T) - Method in class sprouts.impl.Sprouts
 
valOfNullable(Class<T>, T) - Method in interface sprouts.impl.SproutsFactory
 
valOfNullable(Val<T>) - Method in class sprouts.impl.Sprouts
 
valOfNullable(Val<T>) - Method in interface sprouts.impl.SproutsFactory
 
Vals<T> - Interface in sprouts
A read only API of a list of read-only viewed properties that can be observed, iterated over, mapped, filtered, turned into a stream, and more.
ValsDelegate<T> - Interface in sprouts
A context object passed to the various types of change listeners registered in property lists such as Vals and Vars.
valsOf(Class<T>) - Method in class sprouts.impl.Sprouts
 
valsOf(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
valsOf(Class<T>, Iterable<Val<T>>) - Method in class sprouts.impl.Sprouts
 
valsOf(Class<T>, Iterable<Val<T>>) - Method in interface sprouts.impl.SproutsFactory
 
valsOf(Class<T>, Val<T>...) - Method in class sprouts.impl.Sprouts
 
valsOf(Class<T>, Val<T>...) - Method in interface sprouts.impl.SproutsFactory
 
valsOf(Class<T>, Vals<T>) - Method in class sprouts.impl.Sprouts
 
valsOf(Class<T>, Vals<T>) - Method in interface sprouts.impl.SproutsFactory
 
valsOf(Class<T>, T...) - Method in class sprouts.impl.Sprouts
 
valsOf(Class<T>, T...) - Method in interface sprouts.impl.SproutsFactory
 
valsOf(Val<T>, Val<T>...) - Method in class sprouts.impl.Sprouts
 
valsOf(Val<T>, Val<T>...) - Method in interface sprouts.impl.SproutsFactory
 
valsOf(T, T...) - Method in class sprouts.impl.Sprouts
 
valsOf(T, T...) - Method in interface sprouts.impl.SproutsFactory
 
valsOfNullable(Class<T>) - Method in class sprouts.impl.Sprouts
 
valsOfNullable(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
valsOfNullable(Class<T>, T...) - Method in class sprouts.impl.Sprouts
 
valsOfNullable(Class<T>, T...) - Method in interface sprouts.impl.SproutsFactory
 
valsOfNullable(Class<T>, Val<T>...) - Method in class sprouts.impl.Sprouts
 
valsOfNullable(Class<T>, Val<T>...) - Method in interface sprouts.impl.SproutsFactory
 
valsOfNullable(Class<T>, Vals<T>) - Method in class sprouts.impl.Sprouts
 
valsOfNullable(Class<T>, Vals<T>) - Method in interface sprouts.impl.SproutsFactory
 
valsOfNullable(Val<T>, Val<T>...) - Method in class sprouts.impl.Sprouts
 
valsOfNullable(Val<T>, Val<T>...) - Method in interface sprouts.impl.SproutsFactory
 
VALUE - Enum constant in enum class sprouts.SingleChange
The item changed its value in terms of Object.equals(Object) returning false between the old and new value.
valueOf(String) - Static method in enum class sprouts.From
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class sprouts.SequenceChange
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class sprouts.SingleChange
Returns the enum constant of this class with the specified name.
values() - Method in interface sprouts.Association
Returns a tuple of all the values in this association.
values() - Static method in enum class sprouts.From
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class sprouts.SequenceChange
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class sprouts.SingleChange
Returns an array containing the constants of this enum class, in the order they are declared.
valueType() - Method in interface sprouts.Association
Returns the type of the values in this association.
Var<T> - Interface in sprouts
A mutable wrapper for an item which can also be mapped to a weakly referencedViewable to be observed for changes using Actions registered through the Viewable.onChange(Channel, Action) method, where the Channel is used to distinguish between changes from different sources (usually application layers like the view model or the view).
Use Val.view() to access a simple no-op live view of the item of this property and register change listeners on it to react to state changes.
varOf(Class<T>, V) - Method in class sprouts.impl.Sprouts
 
varOf(Class<T>, V) - Method in interface sprouts.impl.SproutsFactory
 
varOf(T) - Method in class sprouts.impl.Sprouts
 
varOf(T) - Method in interface sprouts.impl.SproutsFactory
 
varOfNull(Class<T>) - Method in class sprouts.impl.Sprouts
 
varOfNull(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
varOfNullable(Class<T>, T) - Method in class sprouts.impl.Sprouts
 
varOfNullable(Class<T>, T) - Method in interface sprouts.impl.SproutsFactory
 
Vars<T> - Interface in sprouts
A mutable list of mutable properties designed for MVVM, that can be observed for changes through a Vals.view() by registering Subscriber types on it like Observers and Actions.
varsOf(Class<T>) - Method in class sprouts.impl.Sprouts
 
varsOf(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
varsOf(Class<T>, Iterable<Var<T>>) - Method in class sprouts.impl.Sprouts
 
varsOf(Class<T>, Iterable<Var<T>>) - Method in interface sprouts.impl.SproutsFactory
 
varsOf(Class<T>, Var<T>...) - Method in class sprouts.impl.Sprouts
 
varsOf(Class<T>, Var<T>...) - Method in interface sprouts.impl.SproutsFactory
 
varsOf(Class<T>, T...) - Method in class sprouts.impl.Sprouts
 
varsOf(Class<T>, T...) - Method in interface sprouts.impl.SproutsFactory
 
varsOf(Var<T>, Var<T>...) - Method in class sprouts.impl.Sprouts
 
varsOf(Var<T>, Var<T>...) - Method in interface sprouts.impl.SproutsFactory
 
varsOf(T, T...) - Method in class sprouts.impl.Sprouts
 
varsOf(T, T...) - Method in interface sprouts.impl.SproutsFactory
 
varsOfNullable(Class<T>) - Method in class sprouts.impl.Sprouts
 
varsOfNullable(Class<T>) - Method in interface sprouts.impl.SproutsFactory
 
varsOfNullable(Class<T>, T...) - Method in class sprouts.impl.Sprouts
 
varsOfNullable(Class<T>, T...) - Method in interface sprouts.impl.SproutsFactory
 
varsOfNullable(Class<T>, Iterable<Var<T>>) - Method in interface sprouts.impl.SproutsFactory
 
varsOfNullable(Class<T>, Iterable<Var<T>>) - Method in class sprouts.impl.Sprouts
 
varsOfNullable(Class<T>, Var<T>...) - Method in class sprouts.impl.Sprouts
 
varsOfNullable(Class<T>, Var<T>...) - Method in interface sprouts.impl.SproutsFactory
 
varsOfNullable(Var<T>, Var<T>...) - Method in class sprouts.impl.Sprouts
 
varsOfNullable(Var<T>, Var<T>...) - Method in interface sprouts.impl.SproutsFactory
 
version() - Method in class sprouts.impl.SequenceDiff
The version of the Tuple state to which this SequenceDiff belongs.
Version - Class in sprouts
This is a value object representing a unique ID consisting of two numbers, a lineage and succession, allowing you to identify something and also determine the order in which something was created and updated.
view() - Method in interface sprouts.Val
Returns a no-op Viewable of this Val to be used for registering change listeners (see Viewable.onChange(Channel, Action)).
Warning:
If you have change listeners registered the Viewable returned by this method, and you do not keep a reference to it, then it will be garbage collected alongside all of its change listeners.
So if there are changes in this property afterwords, the change listeners will not be called!
view() - Method in interface sprouts.Vals
Creates a weakly referenced Viewables instance from this list of properties, which is functionally equivalent to this list of properties, except that you can register change listeners on it using the Viewables.onChange(Action) method.
Warning:
If you have change listeners registered the Viewables instance returned by this method, and you do not hold a reference to it, then it will be garbage collected alongside all of its change listeners.
So if there are changes in this list afterwords, the change listeners will not be called!
view(Function<T, T>) - Method in interface sprouts.Val
Use this to create a live view of this property based on a mapping function which maps the item of this property to an item of the same type as this property.
view(U, Function<T, U>) - Method in interface sprouts.Val
Use this to create a live view of this property through a new property based on the provided mapping function.
view(U, U, Function<T, U>) - Method in interface sprouts.Val
Use this to create a live view of this property through a new property based on the provided mapping function.
view(U, U, Function<T, U>) - Method in interface sprouts.Vals
Creates a weakly referenced Viewables instance from this list of properties and a dynamic mapper function that maps the items of the properties to another type.
VIEW - Enum constant in enum class sprouts.From
This channel is used to identify changes which are caused by the user through the view layer.
VIEW_MODEL - Enum constant in enum class sprouts.From
This channel is used to identify changes which are caused by the view model through the view model layer.
Viewable<T> - Interface in sprouts
A read only live view on a delegated item which can be observed for changes using Actions registered through the Viewable.onChange(Channel, Action) method, where the Channel is used to distinguish between changes from different sources (usually application layers like the view model or the view).
Viewables<T> - Interface in sprouts
A read-only live view on a delegated list of items which can be observed for changes using Actions registered through the Viewables.onChange(Action) method.
viewAs(Class<U>, Function<T, U>) - Method in interface sprouts.Val
Use this to create a live view of this property through a new property based on the provided mapping function.
viewAsAssociation(Class<K>, Class<V>, Function<T, Association<K, V>>) - Method in interface sprouts.Val
Creates a live view of this property as a Association containing key-value pairs of the specified key type K and value type V using the supplied mapping function which dynamically maps the current property item T to a Association<K, V>.
viewAsDouble() - Method in interface sprouts.Val
Use this to create a Double based live view of this property through a new property based on the Object.toString() and Double.parseDouble(String) methods used as the mapping functions.
viewAsDouble(double, Function<T, Double>) - Method in interface sprouts.Val
Use this to create a Double based live view of this property through a new property based on the provided mapping function and null object.
viewAsDouble(Function<T, Double>) - Method in interface sprouts.Val
Use this to create a Double based live view of this property through a new property based on the provided mapping function.
viewAsInt() - Method in interface sprouts.Val
Use this to create a Integer based live view of this property through a new property based on the Object.toString() and Integer.parseInt(String) methods used as the mapping functions.
viewAsInt(int, Function<T, Integer>) - Method in interface sprouts.Val
Use this to create a Integer based live view of this property through a new property based on the provided mapping function and null object.
viewAsInt(Function<T, Integer>) - Method in interface sprouts.Val
Use this to create a Integer based live view of this property through a new property based on the provided mapping function.
viewAsNullable(Class<U>, Function<T, U>) - Method in interface sprouts.Val
Use this to create a nullable live view of this property through a new property based on the provided mapping function.
viewAsString() - Method in interface sprouts.Val
Use this to create a String based live view of this property through a new property based on the Object.toString() method used as the mapping function.
viewAsString(String, Function<T, String>) - Method in interface sprouts.Val
Use this to create a String based live view of this property through a new property based on the provided mapping function and null object.
viewAsString(Function<T, String>) - Method in interface sprouts.Val
Use this to create a String based live view of this property through a new property based on the provided mapping function.
viewAsTuple(Class<U>, Function<T, Tuple<U>>) - Method in interface sprouts.Val
Creates a live view of this property as a Tuple containing items of the specified type using the given mapping function which dynamically maps the current property item T to a Tuple<U>.
viewIsEmpty() - Method in interface sprouts.Val
Creates and returns a boolean property which is a live view of the Maybe.isEmpty() flag of this property.
Warning:
If you have change listeners registered the Viewable returned by this method, and you do not keep a reference to it, then it will be garbage collected alongside all of its change listeners.
So if there are changes in this property afterwords, the change listeners will not be called!
viewIsEmpty() - Method in interface sprouts.Vals
Exposes a boolean based property that is a live view on the Vals.isEmpty() flag of the list of properties.
viewIsNotEmpty() - Method in interface sprouts.Vals
Exposes a boolean based property that is a live view on the Vals.isNotEmpty() flag of the list of properties.
viewIsPresent() - Method in interface sprouts.Val
Creates and returns a boolean property which is a live view of the Maybe.isPresent() flag of this property.
Warning:
If you have change listeners registered the Viewable returned by this method, and you do not keep a reference to it, then it will be garbage collected alongside all of its change listeners.
So if there are changes in this property afterwords, the change listeners will not be called!
viewOf(Class<R>, Val<T>, Val<U>, BiFunction<T, U, R>) - Method in class sprouts.impl.Sprouts
 
viewOf(Class<R>, Val<T>, Val<U>, BiFunction<T, U, R>) - Method in interface sprouts.impl.SproutsFactory
 
viewOf(Class<R>, Val<T>, Val<U>, BiFunction<T, U, R>) - Static method in interface sprouts.Val
Creates a read-only Val property that represents a live view of the two given properties using a combiner function.
viewOf(Class<T>, Val<U>, Function<U, T>) - Method in class sprouts.impl.Sprouts
 
viewOf(Class<T>, Val<U>, Function<U, T>) - Method in interface sprouts.impl.SproutsFactory
 
viewOf(Val<T>) - Method in class sprouts.impl.Sprouts
 
viewOf(Val<T>) - Method in interface sprouts.impl.SproutsFactory
 
viewOf(Val<T>, Val<U>, BiFunction<T, U, T>) - Method in class sprouts.impl.Sprouts
 
viewOf(Val<T>, Val<U>, BiFunction<T, U, T>) - Method in interface sprouts.impl.SproutsFactory
 
viewOf(Val<T>, Val<U>, BiFunction<T, U, T>) - Static method in interface sprouts.Val
Creates a read-only Val property that represents a live view of the two given properties using a combiner function.
viewOf(Vals<T>) - Method in class sprouts.impl.Sprouts
 
viewOf(Vals<T>) - Method in interface sprouts.impl.SproutsFactory
 
viewOf(U, U, Val<T>, Function<T, U>) - Method in class sprouts.impl.Sprouts
 
viewOf(U, U, Val<T>, Function<T, U>) - Method in interface sprouts.impl.SproutsFactory
 
viewOf(U, U, Vals<T>, Function<T, U>) - Method in class sprouts.impl.Sprouts
 
viewOf(U, U, Vals<T>, Function<T, U>) - Method in interface sprouts.impl.SproutsFactory
 
viewOfNullable(Class<R>, Val<T>, Val<U>, BiFunction<T, U, R>) - Method in class sprouts.impl.Sprouts
 
viewOfNullable(Class<R>, Val<T>, Val<U>, BiFunction<T, U, R>) - Method in interface sprouts.impl.SproutsFactory
 
viewOfNullable(Class<R>, Val<T>, Val<U>, BiFunction<T, U, R>) - Static method in interface sprouts.Val
Creates a read-only nullable Val property that represents a live view of the two given properties using a combiner function.
viewOfNullable(Class<U>, Val<T>, Function<T, U>) - Method in class sprouts.impl.Sprouts
 
viewOfNullable(Class<U>, Val<T>, Function<T, U>) - Method in interface sprouts.impl.SproutsFactory
 
viewOfNullable(Val<T>, Val<U>, BiFunction<T, U, T>) - Method in class sprouts.impl.Sprouts
 
viewOfNullable(Val<T>, Val<U>, BiFunction<T, U, T>) - Method in interface sprouts.impl.SproutsFactory
 
viewOfNullable(Val<T>, Val<U>, BiFunction<T, U, T>) - Static method in interface sprouts.Val
Creates a read-only nullable Val property that represents a live view of the two given properties using a combiner function.
viewSize() - Method in interface sprouts.Vals
Exposes an integer based property that is a live view on the Vals.size() of the list of properties.

W

WeakAction<O,D> - Interface in sprouts
A weak action is an extension of the Action interface which defines a method for clearing the action and a method for retrieving the owner of the action.
WeakObserver<O> - Interface in sprouts
A weak observer is an extension of the Observer interface which defines a method for clearing its state (setting it to null) and a method for retrieving the owner of the observer.
wither(A, B) - Method in interface sprouts.Lens
Produces a new instance of the parent type A with one of its fields of type B updated with a new value.
withId(String) - Method in interface sprouts.Val
Use this method to create a new property with an id.
withId(String) - Method in interface sprouts.Var
Use this method to create a new property with an id.

Z

zoomTo(B, Function<T, B>, BiFunction<T, B, T>) - Method in interface sprouts.Var
Creates a lens property (Var) that focuses on a specific field of the current property item, allowing a default value for when the current value is null.
zoomTo(B, Lens<T, B>) - Method in interface sprouts.Var
 
zoomTo(Function<T, B>, BiFunction<T, B, T>) - Method in interface sprouts.Var
Creates a lens property (Var) that focuses on a specific field on the property item type, using a getter and a wither function to access and update the field.
zoomTo(Lens<T, B>) - Method in interface sprouts.Var
Creates a lens property (Var) that focuses on a specific field of the current property item using a supplied Lens implementation.
zoomToNullable(Class<B>, Function<T, B>, BiFunction<T, B, T>) - Method in interface sprouts.Var
Creates a nullable lens property (Var) that focuses on a specific nullable field of the current property item.
zoomToNullable(Class<B>, Lens<T, B>) - Method in interface sprouts.Var
 
A B C D E F G H I K L M N O P R S T U V W Z 
All Classes and Interfaces|All Packages|Serialized Form