A B C D E F G H I L M N O P Q R S T U V W Z _

A

AbstractDelayable<A,B> - Class in net.sf.staccatocommons.lang.function
 
AbstractDelayable() - Constructor for class net.sf.staccatocommons.lang.function.AbstractDelayable
 
AbstractDelayable2<A,B,C> - Class in net.sf.staccatocommons.lang.function
 
AbstractDelayable2() - Constructor for class net.sf.staccatocommons.lang.function.AbstractDelayable2
Creates a new AbstractDelayable2
AbstractDelayable3<A,B,C,D> - Class in net.sf.staccatocommons.lang.function
 
AbstractDelayable3() - Constructor for class net.sf.staccatocommons.lang.function.AbstractDelayable3
Creates a new AbstractDelayable3
AbstractFunction<A,B> - Class in net.sf.staccatocommons.lang.function
 
AbstractFunction() - Constructor for class net.sf.staccatocommons.lang.function.AbstractFunction
 
AbstractFunction.Soft<A,B> - Class in net.sf.staccatocommons.lang.function
AbstractFunction that handles exceptions by softening them using SoftException.soften(Throwable)
AbstractFunction.Soft() - Constructor for class net.sf.staccatocommons.lang.function.AbstractFunction.Soft
 
AbstractFunction2<A,B,C> - Class in net.sf.staccatocommons.lang.function
 
AbstractFunction2() - Constructor for class net.sf.staccatocommons.lang.function.AbstractFunction2
 
AbstractFunction2.Soft<A,B,C> - Class in net.sf.staccatocommons.lang.function
AbstractFunction2 that handles exceptions by softening them using SoftException.soften(Throwable)
AbstractFunction2.Soft() - Constructor for class net.sf.staccatocommons.lang.function.AbstractFunction2.Soft
 
AbstractFunction3<A,B,C,D> - Class in net.sf.staccatocommons.lang.function
A three-arguments function
AbstractFunction3() - Constructor for class net.sf.staccatocommons.lang.function.AbstractFunction3
 
AbstractFunction3.Soft<A,B,C,D> - Class in net.sf.staccatocommons.lang.function
AbstractFunction3 that handles exceptions by softening them using SoftException.soften(Throwable)
AbstractFunction3.Soft() - Constructor for class net.sf.staccatocommons.lang.function.AbstractFunction3.Soft
 
AbstractPredicate<A> - Class in net.sf.staccatocommons.lang.predicate
A AbstractPredicate is an abstract Evaluable.
AbstractPredicate() - Constructor for class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
AbstractPredicate.Soft<A> - Class in net.sf.staccatocommons.lang.predicate
AbstractPredicate that handles exceptions by softening them using SoftException.soften(Throwable)
AbstractPredicate.Soft() - Constructor for class net.sf.staccatocommons.lang.predicate.AbstractPredicate.Soft
 
AbstractPredicate2<A,B> - Class in net.sf.staccatocommons.lang.predicate
 
AbstractPredicate2() - Constructor for class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
 
AbstractPredicate2.NullSafePredicate2 - Class in net.sf.staccatocommons.lang.predicate
 
AbstractPredicate2.NullSafePredicate2() - Constructor for class net.sf.staccatocommons.lang.predicate.AbstractPredicate2.NullSafePredicate2
 
AbstractPredicate2.Soft<A,B> - Class in net.sf.staccatocommons.lang.predicate
AbstractPredicate2 that handles exceptions by softening them using SoftException.soften(Throwable)
AbstractPredicate2.Soft() - Constructor for class net.sf.staccatocommons.lang.predicate.AbstractPredicate2.Soft
 
AbstractReusableBuilder<T> - Class in net.sf.staccatocommons.lang.builder
An abstract implementation of a builder pattern.
AbstractReusableBuilder() - Constructor for class net.sf.staccatocommons.lang.builder.AbstractReusableBuilder
 
AbstractReusableBuilder.DoneCheck - Class in net.sf.staccatocommons.lang.builder
A Check that throws an ObjectUnderConstructionException when checks fail
AbstractTuple - Class in net.sf.staccatocommons.lang.tuple
A AbstractTuple is a fixed size sequence of heterogeneous objects.
AbstractTuple.TupleState<A> - Class in net.sf.staccatocommons.lang.tuple
 
AbstractTuple.TupleState(int) - Constructor for class net.sf.staccatocommons.lang.tuple.AbstractTuple.TupleState
Creates a new AbstractTuple.TupleState
Add - Class in net.sf.staccatocommons.lang.internal
 
Add(int) - Constructor for class net.sf.staccatocommons.lang.internal.Add
 
add(int) - Static method in class net.sf.staccatocommons.lang.internal.Add
 
add(Object) - Method in interface net.sf.staccatocommons.lang.value.RelevantState.StateCollector
Adds an attribute to the object's state
add(int) - Method in interface net.sf.staccatocommons.lang.value.RelevantState.StateCollector
Adds an int attribute to the object's state
add(long) - Method in interface net.sf.staccatocommons.lang.value.RelevantState.StateCollector
Adds a long attribute to the object's state
add(boolean) - Method in interface net.sf.staccatocommons.lang.value.RelevantState.StateCollector
Adds a boolean attribute to the object's state
All<T> - Class in net.sf.staccatocommons.lang.predicate.internal
 
All(Iterable<Evaluable<T>>) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.All
Creates a new All
all(Evaluable<T>...) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that evaluates to true if and only if all the given predicates evaluate true
all(Iterable<Evaluable<T>>) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that evaluates to true if and only if all the given predicates evaluate true
and(Evaluable<? super A>) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
Returns a predicate that performs a short-circuit logical-and between this AbstractPredicate's AbstractPredicate.eval(Object) and other
and(Evaluable2<? super A, ? super B>) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
 
and(Evaluable<? super T>) - Method in class net.sf.staccatocommons.lang.predicate.internal.False
 
and(Evaluable<? super T>) - Method in class net.sf.staccatocommons.lang.predicate.internal.True
 
andNotNull() - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
Any<T> - Class in net.sf.staccatocommons.lang.predicate.internal
 
Any(Iterable<Evaluable<T>>) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.Any
Creates a new All
any(Evaluable<T>...) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that evaluates to false if and only if all the given predicates evaluate false
any(Iterable<Evaluable<T>>) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that evaluates to false if and only if all the given predicates evaluate false
ApplicableFunction<A,B> - Class in net.sf.staccatocommons.lang.function.internal
 
ApplicableFunction(Applicable<? super A, ? extends B>) - Constructor for class net.sf.staccatocommons.lang.function.internal.ApplicableFunction
Creates a new ApplicableFunction
apply(T) - Method in class net.sf.staccatocommons.lang.block.Block
 
apply(T1) - Method in class net.sf.staccatocommons.lang.block.Block2
 
apply(T1, T2) - Method in class net.sf.staccatocommons.lang.block.Block2
 
apply(T1, T2, T3) - Method in class net.sf.staccatocommons.lang.block.Block3
 
apply(T1) - Method in class net.sf.staccatocommons.lang.block.Block3
 
apply(T1, T2) - Method in class net.sf.staccatocommons.lang.block.Block3
 
apply(A) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction.Soft
 
apply(A) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2
 
apply(A, B) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2.Soft
 
apply(A, B) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction3
 
apply(A) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction3
 
apply(A, B, C) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction3.Soft
 
apply(A) - Method in class net.sf.staccatocommons.lang.function.internal.ApplicableFunction
 
apply(A) - Method in class net.sf.staccatocommons.lang.function.internal.ConstantFunction
 
apply(A) - Method in class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 
apply(Integer) - Method in class net.sf.staccatocommons.lang.internal.Add
 
apply(A) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
apply(A, B) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
 
apply(A) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
 
apply(A) - Method in class net.sf.staccatocommons.lang.predicate.internal.Equals2
 
apply(A) - Method in class net.sf.staccatocommons.lang.predicate.internal.Same2
 

B

BasicEquals - Enum in net.sf.staccatocommons.lang.value
Enumeration of equalty-test scenarios that helps on building effective Object.equals(Object) method.
between(T, T, T) - Static method in class net.sf.staccatocommons.lang.Compare
Tests that given three Comparables element, min and max, is true that: min <= element <= max
between(T, T, T, Comparator<T>) - Static method in class net.sf.staccatocommons.lang.Compare
Tests that given three Comparables element, min and max, and a Comparator, using that comparator is true that: min <= element <= max
between(long, long, long) - Static method in class net.sf.staccatocommons.lang.Compare
Tests that given three longs element, min and max, is true that: min <= element <= max
between(int, int, int) - Static method in class net.sf.staccatocommons.lang.Compare
Tests that given three ints element, min and max, is true that: min <= element <= max
between(T, T) - Static method in class net.sf.staccatocommons.lang.Compare
Answers a predicate that evalutes if its argument is between min and max
Block<T> - Class in net.sf.staccatocommons.lang.block
An abstract, one argument code block, that implements Executable
Block() - Constructor for class net.sf.staccatocommons.lang.block.Block
 
Block2<T1,T2> - Class in net.sf.staccatocommons.lang.block
 
Block2() - Constructor for class net.sf.staccatocommons.lang.block.Block2
 
Block3<T1,T2,T3> - Class in net.sf.staccatocommons.lang.block
 
Block3() - Constructor for class net.sf.staccatocommons.lang.block.Block3
 
Blocks - Class in net.sf.staccatocommons.lang.block
 
Blocks() - Constructor for class net.sf.staccatocommons.lang.block.Blocks
 
branch(Applicable<? super A, ? extends B>, Applicable<? super A, ? extends C>) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Answers a function that applies both given functions to its argument, and returns both results, as a Pair.
build() - Method in class net.sf.staccatocommons.lang.builder.AbstractReusableBuilder
Checks the builder is ready for creating a new object, sending AbstractReusableBuilder.checkDone(DoneCheck) messages, and then creates it, sending AbstractReusableBuilder.buildObject().
build() - Method in interface net.sf.staccatocommons.lang.builder.Builder
Returns the built object.
build() - Method in interface net.sf.staccatocommons.lang.builder.ReusableBuilder
Returns the built object.
build() - Method in class net.sf.staccatocommons.lang.CollectionBuilder
 
build() - Method in class net.sf.staccatocommons.lang.MapBuilder
 
Builder<T> - Interface in net.sf.staccatocommons.lang.builder
 
BuilderAlreadyUsedException - Exception in net.sf.staccatocommons.lang.builder
Exception that signals that a Builder has being used more than once, but it does not support it.
BuilderAlreadyUsedException() - Constructor for exception net.sf.staccatocommons.lang.builder.BuilderAlreadyUsedException
Creates an exception with a descriptive message, and no cause
buildObject() - Method in class net.sf.staccatocommons.lang.builder.AbstractReusableBuilder
 

C

CalendarThunk - Class in net.sf.staccatocommons.lang.thunk.internal
 
CalendarThunk() - Constructor for class net.sf.staccatocommons.lang.thunk.internal.CalendarThunk
 
callOrSoften(Callable<T>) - Static method in exception net.sf.staccatocommons.lang.SoftException
Tries return callable.call().
checkDone(AbstractReusableBuilder.DoneCheck) - Method in class net.sf.staccatocommons.lang.builder.AbstractReusableBuilder
 
clone(Applicable<? super A, ? extends B>) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Answers a function that returns a Tuple2 that contains the original function argument and the result of applying +------function0-----> >----+ +-------------------->
coalesce(T, T) - Static method in class net.sf.staccatocommons.lang.Nulls
Returns the given value, if non null, or other, otherwise.
coalesce(T, Thunk<T>) - Static method in class net.sf.staccatocommons.lang.Nulls
Returns the given value, if non null, or the value provided by the given Thunk, otherwise.
CollectionBuilder<A,B extends Collection<A>> - Class in net.sf.staccatocommons.lang
a Builder for Collections.
CollectionBuilder(B, Applicable<B, B>) - Constructor for class net.sf.staccatocommons.lang.CollectionBuilder
Creates a new CollectionBuilder
collectState(A, RelevantState.StateCollector) - Method in class net.sf.staccatocommons.lang.value.RelevantState
Collects the attributes that conform the relevant state of the given object, by adding them to the given RelevantState.StateCollector
Compare - Class in net.sf.staccatocommons.lang
Class methods that implement comparisons for Comparables, like between(max, min) and in(collection)
Compare() - Constructor for class net.sf.staccatocommons.lang.Compare
 
compare(A, A) - Method in class net.sf.staccatocommons.lang.internal.NaturalComparator
 
compare() - Static method in class net.sf.staccatocommons.lang.predicate.Equiv
Answers an Predicate2 that performs an compare test between its Comparable arguments, that it returns arg0.compareTo(arg1) == 0
compare(A, A) - Method in class net.sf.staccatocommons.lang.value.RelevantState
 
Compare2<A extends Comparable<A>> - Class in net.sf.staccatocommons.lang.predicate.internal
 
Compare2() - Constructor for class net.sf.staccatocommons.lang.predicate.internal.Compare2
 
compareTest() - Static method in class net.sf.staccatocommons.lang.predicate.internal.Compare2
 
compareTo(Tuple2<A, B>) - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
compareTo(Tuple4<A, B, C, D>) - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
compareTo(Tuple3<A, B, C>) - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
compareTo(A, A) - Method in class net.sf.staccatocommons.lang.value.RelevantState
Compares the given object with other, based on the fields collected by RelevantState.collectState(Object, StateCollector).
constant(B) - Static method in class net.sf.staccatocommons.lang.function.Functions
Returns a function that takes one argument, and regardless of it, returns a given value.
constant(Thunk<B>) - Static method in class net.sf.staccatocommons.lang.function.Functions
Returns a function that takes one argument, and regadless of it, returns the given thunk's value.
constant(A) - Static method in class net.sf.staccatocommons.lang.thunk.Thunks
Returns a thunk that returns always the given value
ConstantFunction<A,B> - Class in net.sf.staccatocommons.lang.function.internal
 
ConstantFunction(B) - Constructor for class net.sf.staccatocommons.lang.function.internal.ConstantFunction
Creates a new ConstantFunction
contains(Object) - Method in class net.sf.staccatocommons.lang.None
 
contains(T) - Method in class net.sf.staccatocommons.lang.Some
 
ContainsSubstringPredicate - Class in net.sf.staccatocommons.lang.predicate.internal
 
ContainsSubstringPredicate(CharSequence) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.ContainsSubstringPredicate
Creates a new ContainsSubstringPredicate
createException(Check.Failure) - Method in class net.sf.staccatocommons.lang.builder.AbstractReusableBuilder.DoneCheck
 
currentDate() - Static method in class net.sf.staccatocommons.lang.thunk.Thunks
Returns a Thunk that provides the current date
curry(Function<Tuple2<A, B>, C>) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Curries the given function that takes a single Tuple2, by returning a new one that takes two arguments, one for each component of the pair
curry(Predicate<Tuple2<A, B>>) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Curries the given predicate that takes a single Tuple2, by returning a new one that takes two arguments, one for each component of the pair
curry3(Function<Tuple3<A, B, C>, D>) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Curries the given function that takes a single Tuple3, by returning a new one that takes three arguments, one for each component of the triple

D

DateThunk - Class in net.sf.staccatocommons.lang.thunk.internal
 
DateThunk() - Constructor for class net.sf.staccatocommons.lang.thunk.internal.DateThunk
 
delayed(A) - Method in class net.sf.staccatocommons.lang.function.AbstractDelayable
 
delayed(A, B) - Method in class net.sf.staccatocommons.lang.function.AbstractDelayable2
Delays execution of this block by returning a void thunk that will evaluate exec(arg1, arg2) each time its value is required
delayed(A, B, C) - Method in class net.sf.staccatocommons.lang.function.AbstractDelayable3
 
delayed(A) - Method in class net.sf.staccatocommons.lang.function.internal.ConstantFunction
 
delayed(A) - Method in class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 
delayedValue(Thunk<? extends A>) - Method in class net.sf.staccatocommons.lang.function.AbstractDelayable
 
delayedValue(Thunk<A>, Thunk<B>) - Method in class net.sf.staccatocommons.lang.function.AbstractDelayable2
 
delayedValue(Thunk<A>, Thunk<B>, Thunk<C>) - Method in class net.sf.staccatocommons.lang.function.AbstractDelayable3
 
delayedValue(Thunk<? extends A>) - Method in class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 

E

empty() - Static method in class net.sf.staccatocommons.lang.block.Blocks
Returns a block that does nothing
Empty<T> - Class in net.sf.staccatocommons.lang.block.internal
 
Empty() - Constructor for class net.sf.staccatocommons.lang.block.internal.Empty
 
equal(B) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
equivalent to then(Predicates.equal(object))
equal() - Static method in class net.sf.staccatocommons.lang.predicate.Equiv
Answers an Predicate2 that performs an equality test between its arguments, that it returns true if both are equal
equal(T) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that tests if the given value is equal to its argument: value.equals(argument).
equalNullSafe() - Static method in class net.sf.staccatocommons.lang.predicate.Equiv
Answers an Predicate2 that performs an equality test between its nullable arguments, that it returns true if both are equal or null.
equals(Object) - Method in class net.sf.staccatocommons.lang.None
 
Equals<T> - Class in net.sf.staccatocommons.lang.predicate.internal
 
Equals(T) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.Equals
Creates a new Equals
equals(Object) - Method in class net.sf.staccatocommons.lang.Some
 
equals(Object) - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
equals(Object) - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
equals(Object) - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
equals(A, Object) - Method in class net.sf.staccatocommons.lang.value.RelevantState
Answers if the given object is equal to other, based on the fields collected by RelevantState.collectState(Object, StateCollector) It is safe to use the result as an implementation of Object.equals(Object) for object
Equals2<A> - Class in net.sf.staccatocommons.lang.predicate.internal
 
Equals2() - Constructor for class net.sf.staccatocommons.lang.predicate.internal.Equals2
 
EqualsIgnoreCase - Class in net.sf.staccatocommons.lang.predicate.internal
 
EqualsIgnoreCase(String) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.EqualsIgnoreCase
Creates a new EqualsIgnoreCase
equalTest() - Static method in class net.sf.staccatocommons.lang.predicate.internal.Equals2
 
Equiv - Class in net.sf.staccatocommons.lang.predicate
Factory class methods for creating common, simple Predicate2 that implement the notion of and equivalence test, that is, a reflexive, symmetric and transitive relation between its arguments.
eval(A) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
eval(A) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate.Soft
 
eval(A, B) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2.NullSafePredicate2
 
eval(A, B) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2.Soft
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.All
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.Any
 
eval(A, A) - Method in class net.sf.staccatocommons.lang.predicate.internal.Compare2
 
eval(String) - Method in class net.sf.staccatocommons.lang.predicate.internal.ContainsSubstringPredicate
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.Equals
 
eval(A, A) - Method in class net.sf.staccatocommons.lang.predicate.internal.Equals2
 
eval(String) - Method in class net.sf.staccatocommons.lang.predicate.internal.EqualsIgnoreCase
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.EvaluablePredicate
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.False
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.GreaterThan
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.InPredicate
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.LessThan
 
eval(String) - Method in class net.sf.staccatocommons.lang.predicate.internal.Matches
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.Same
 
eval(A, A) - Method in class net.sf.staccatocommons.lang.predicate.internal.Same2
 
eval(T) - Method in class net.sf.staccatocommons.lang.predicate.internal.True
 
eval(A, A) - Method in class net.sf.staccatocommons.lang.value.RelevantState
 
EvaluablePredicate<T> - Class in net.sf.staccatocommons.lang.predicate.internal
 
EvaluablePredicate(Evaluable<? super T>) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.EvaluablePredicate
Creates a new EvaluablePredicate
exec(T) - Method in class net.sf.staccatocommons.lang.block.Block
Executes this block.
exec(T1, T2) - Method in class net.sf.staccatocommons.lang.block.Block2
Executes this block.
exec(T1, T2, T3) - Method in class net.sf.staccatocommons.lang.block.Block3
Executes this block.
exec(T) - Method in class net.sf.staccatocommons.lang.block.internal.Empty
 

F

fail(String, Object...) - Static method in class net.sf.staccatocommons.lang.thunk.Thunks
Answers a Thunk that, when evaluated, throws an exception with the given formatted message as Ensure.fail(String, Object...)
FailThunk<A> - Class in net.sf.staccatocommons.lang.thunk.internal
Thunk that just sends Ensure.fail(String, Object, String, Object...)
FailThunk(String, Object[]) - Constructor for class net.sf.staccatocommons.lang.thunk.internal.FailThunk
Creates the FailThunk
False<T> - Class in net.sf.staccatocommons.lang.predicate.internal
 
False() - Constructor for class net.sf.staccatocommons.lang.predicate.internal.False
 
false_() - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
 
filter(Evaluable<? super A>) - Method in class net.sf.staccatocommons.lang.Option
Answers this option if defined and the given predicate evaluates to true.
first() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
first() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
first() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
first() - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Answers a function that returns the first component of a tuple
flip() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2
 
forEach(Executable<? super A>) - Method in class net.sf.staccatocommons.lang.Option
 
fourth() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
fourth() - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Answers a function that returns the fourth component of a tuple
from(Collection<A>) - Static method in class net.sf.staccatocommons.lang.CollectionBuilder
Answers a new CollectionBuilder that configures a Collection
from(Applicable<? super A, ? extends B>) - Static method in class net.sf.staccatocommons.lang.function.Functions
Converts the given Applicable into a Function by casting it, is possible, or creating a new function that delegates its apply method to it.
from(Applicable2<? super A, ? super B, ? extends C>) - Static method in class net.sf.staccatocommons.lang.function.Functions
Converts the given Applicable2 into a Function2 by casting it, is possible, or creating a new function that delegates its apply method to it.
from(Map<K, V>) - Static method in class net.sf.staccatocommons.lang.MapBuilder
Creates a new MapBuilder that uses the given map instance, and using MapBuilder.toUnmodifiableMap() as postprocessor.
from(Evaluable<? super T>) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Converts the given Evaluable into a AbstractPredicate.
from(Callable<A>) - Static method in class net.sf.staccatocommons.lang.thunk.Thunks
Returns a thunk whose value is retrieved sending Callable.call() to the given Callable
from(Runnable) - Static method in class net.sf.staccatocommons.lang.thunk.Thunks
Returns a cell that provides not actual value, but a side effect instead, by sending Runnable.run() to the given runnable
from(T, Object) - Static method in enum net.sf.staccatocommons.lang.value.BasicEquals
Performs a BasicEquals test
Functions - Class in net.sf.staccatocommons.lang.function
Class factory methods for some common Functions

G

getInstance() - Static method in class net.sf.staccatocommons.lang.block.internal.Empty
 
getInstance() - Static method in class net.sf.staccatocommons.lang.predicate.internal.False
 
getInstance() - Static method in class net.sf.staccatocommons.lang.predicate.internal.True
 
getInstance() - Static method in class net.sf.staccatocommons.lang.tuple.internal.TupleToStringStyle
 
getInstance() - Static method in class net.sf.staccatocommons.lang.value.NamedTupleToStringStyle
 
getKey() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
getToStringStyle() - Method in class net.sf.staccatocommons.lang.value.RelevantState
The ToStringStyle used to create toString representations
getValue() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
greaterThan(T) - Static method in class net.sf.staccatocommons.lang.Compare
Returns a predicate that evaluates if its argument is greater than the given value.
GreaterThan<T extends Comparable<T>> - Class in net.sf.staccatocommons.lang.predicate.internal
 
GreaterThan(T) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.GreaterThan
Creates a new GreaterThan
greaterThanOrEqualTo(T) - Static method in class net.sf.staccatocommons.lang.Compare
Returns a predicate that evaluates if its argument is greater than or equal to the given value.

H

harden(SoftException) - Static method in exception net.sf.staccatocommons.lang.SoftException
Converts the given SoftException into a checked Exception, by returning its cause
harden(RuntimeException) - Static method in exception net.sf.staccatocommons.lang.SoftException
Converts a given RuntimeException into a checked Exception, if possible.
hashCode() - Method in class net.sf.staccatocommons.lang.None
 
hashCode() - Method in class net.sf.staccatocommons.lang.Some
 
hashCode() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
hashCode() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
hashCode() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
hashCode(A) - Method in class net.sf.staccatocommons.lang.value.RelevantState
Answers the hashcode for the given object, based on the attributes collected by RelevantState.collectState(Object, StateCollector) It is safe to use the result as an implementation of Object.hashCode() for object

I

identity() - Static method in class net.sf.staccatocommons.lang.function.Functions
Returns the identity function, that is, a Function that takes an argument and returns it.
identity() - Static method in class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 
IdentityFunction<A> - Class in net.sf.staccatocommons.lang.function.internal
 
IdentityFunction() - Constructor for class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 
ifDefined(Executable<? super T>) - Method in class net.sf.staccatocommons.lang.None
 
ifDefined(Executable<? super A>) - Method in class net.sf.staccatocommons.lang.Option
Executed the given block if this option is defined
ifDefined(Executable<? super T>) - Method in class net.sf.staccatocommons.lang.Some
 
impure(Executable<? super A>) - Static method in class net.sf.staccatocommons.lang.function.Functions
Answers an impure - with side effect - function that executes the given block and answers its argument
in(int, int[]) - Static method in class net.sf.staccatocommons.lang.Compare
Tests if a given array contains an element
in(long, long[]) - Static method in class net.sf.staccatocommons.lang.Compare
Tests if a given array contains an element
in(T, T...) - Static method in class net.sf.staccatocommons.lang.Compare
Tests if a given array contains an element
in(T...) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that tests if its argument is equal to any of the given values
in(Collection<T>) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that tests if its argument is equal to any of the values in the given collection
in_(T...) - Static method in class net.sf.staccatocommons.lang.Compare
Returns a predicate that tests if its argument is equal to any of the given values
InPredicate<T> - Class in net.sf.staccatocommons.lang.predicate.internal
A predicate that tests if evaluated element is in a set of values
InPredicate(Collection<T>) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.InPredicate
Creates a new InPredicate
InPredicate(Set<T>) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.InPredicate
Creates a new InPredicate
InPredicate(T...) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.InPredicate
Creates a new InPredicate
INSTANCE - Static variable in class net.sf.staccatocommons.lang.thunk.internal.CalendarThunk
An instance
INSTANCE - Static variable in class net.sf.staccatocommons.lang.thunk.internal.DateThunk
An instance
isDefined() - Method in class net.sf.staccatocommons.lang.None
 
isDefined() - Method in class net.sf.staccatocommons.lang.Option
Returns if the value has been defined or not.
isDefined() - Method in class net.sf.staccatocommons.lang.Some
 
isEmpty() - Method in class net.sf.staccatocommons.lang.None
 
isEmpty() - Method in class net.sf.staccatocommons.lang.Some
 
isEqualsDone() - Method in enum net.sf.staccatocommons.lang.value.BasicEquals
Answers if this basic equalty-test result is enough to determine if the two objects given are equal or not
isIdentity() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
isIdentity() - Method in class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 
isInstanceOf(Class<? extends T>) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that tests if its argument is instance of the given class
isUndefined() - Method in class net.sf.staccatocommons.lang.Option
 
iterator() - Method in class net.sf.staccatocommons.lang.None
 
iterator() - Method in class net.sf.staccatocommons.lang.Some
 

L

lessThan(T) - Static method in class net.sf.staccatocommons.lang.Compare
Returns a predicate that evaluates if its argument is less than the given value.
LessThan<T extends Comparable<T>> - Class in net.sf.staccatocommons.lang.predicate.internal
 
LessThan(T) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.LessThan
Creates a new LessThan
lessThanOrEqualTo(T) - Static method in class net.sf.staccatocommons.lang.Compare
Returns a predicate that evaluates if its argument is lower than or equal to the given value.
linkedMapWith(K, V) - Static method in class net.sf.staccatocommons.lang.MapBuilder
Creates a new MapBuilder using a LinkedHashMap as map implementation and the first key and value.
listWith(A) - Static method in class net.sf.staccatocommons.lang.CollectionBuilder
Answers a new CollectionBuilder that configures a List, with the given element already added.

M

map(Applicable<? super A, ? extends T2>) - Method in class net.sf.staccatocommons.lang.Option
Applies the given function to the Option's value and wraps it into an Option, if defined.
MapBuilder<K,V,M extends Map<K,V>> - Class in net.sf.staccatocommons.lang
A Builder for Maps.
MapBuilder(M, Applicable<M, M>) - Constructor for class net.sf.staccatocommons.lang.MapBuilder
Creates a new MapBuilder
mapWith(K, V) - Static method in class net.sf.staccatocommons.lang.MapBuilder
Creates a new MapBuilder using a HashMap as map implementation and the first key and value.
Matches - Class in net.sf.staccatocommons.lang.predicate.internal
A Predicate that evaluates if a String mathes a Pattern
Matches(String) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.Matches
Creates a new Matches using a regular expression
Matches(Pattern) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.Matches
Creates a new Matches using a Pattern.
max(T, T) - Static method in class net.sf.staccatocommons.lang.Compare
 
max(Comparator<? super A>) - Static method in class net.sf.staccatocommons.lang.Compare
Answers a new AbstractFunction2 that returns the max of its arguments using the given comparator.
max(T, T, Comparator<? super T>) - Static method in class net.sf.staccatocommons.lang.Compare
Answers the min element between c1 and c2, using the given Comparator
merge(Applicable<? super B, ? extends C>) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
 
min(T, T) - Static method in class net.sf.staccatocommons.lang.Compare
 
min(Comparator<? super A>) - Static method in class net.sf.staccatocommons.lang.Compare
Answers a new AbstractFunction2 that returns the min of its arguments using the given comparator.
min(T, T, Comparator<? super T>) - Static method in class net.sf.staccatocommons.lang.Compare
Answers the max element between c1 and c2, using the given Comparator

N

NamedTupleToStringStyle - Class in net.sf.staccatocommons.lang.value
A ToStringStyle that formats an object like a named-tuple, were the name is the object's class, and its components are its attributes.
NamedTupleToStringStyle() - Constructor for class net.sf.staccatocommons.lang.value.NamedTupleToStringStyle
Creates a new NamedTupleToStringStyle
natural() - Static method in class net.sf.staccatocommons.lang.Compare
Answers a natural comparator, that is, a comparator that compares elements using its natural order, as defined by Comparable.
natural() - Static method in class net.sf.staccatocommons.lang.internal.NaturalComparator
Answers a NaturalComparator
NaturalComparator<A extends Comparable<A>> - Class in net.sf.staccatocommons.lang.internal
 
NaturalComparator() - Constructor for class net.sf.staccatocommons.lang.internal.NaturalComparator
 
net.sf.staccatocommons.lang - package net.sf.staccatocommons.lang
This package contains Options, SoftExceptions and null handling utilities.
net.sf.staccatocommons.lang.block - package net.sf.staccatocommons.lang.block
This package contains the Block abstract class and variants, and the Blocks factory class methods hub, which provide rich-interfaced Executables and variants
net.sf.staccatocommons.lang.block.internal - package net.sf.staccatocommons.lang.block.internal
 
net.sf.staccatocommons.lang.builder - package net.sf.staccatocommons.lang.builder
This package defines interfaces, exceptions and abstract classes for implementing a builder
net.sf.staccatocommons.lang.function - package net.sf.staccatocommons.lang.function
This package contains the AbstractFunction abstract class and variants, and the Functions factory class methods hub, which provide rich-interfaced Applicables and variants
net.sf.staccatocommons.lang.function.internal - package net.sf.staccatocommons.lang.function.internal
 
net.sf.staccatocommons.lang.internal - package net.sf.staccatocommons.lang.internal
 
net.sf.staccatocommons.lang.predicate - package net.sf.staccatocommons.lang.predicate
This package contains the AbstractPredicate abstract class and the Predicates factory class methods hub, which provide rich-interfaced Evaluables
net.sf.staccatocommons.lang.predicate.internal - package net.sf.staccatocommons.lang.predicate.internal
 
net.sf.staccatocommons.lang.thunk - package net.sf.staccatocommons.lang.thunk
 
net.sf.staccatocommons.lang.thunk.internal - package net.sf.staccatocommons.lang.thunk.internal
 
net.sf.staccatocommons.lang.tuple - package net.sf.staccatocommons.lang.tuple
This package provides implementations of tuples - heterogeneous, fixed size sequences of elements called components - with arities - number of components - of 2, 3 and 4.
net.sf.staccatocommons.lang.tuple.internal - package net.sf.staccatocommons.lang.tuple.internal
 
net.sf.staccatocommons.lang.value - package net.sf.staccatocommons.lang.value
This package contains classes for that help on implementing Object.equals(Object), Object.hashCode() and Object.toString()
None<T> - Class in net.sf.staccatocommons.lang
An undefined Option, that it, and option that does not have a value
none() - Static method in class net.sf.staccatocommons.lang.None
 
none() - Static method in class net.sf.staccatocommons.lang.Option
Factory method for creating an undefined value.
not() - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
not() - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
 
not() - Method in class net.sf.staccatocommons.lang.predicate.internal.False
 
not() - Method in class net.sf.staccatocommons.lang.predicate.internal.True
 
notNull() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
equivalent to then(Predicates.notNull());
notNull() - Static method in class net.sf.staccatocommons.lang.predicate.internal.NullPredicates
 
notNull() - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a preficate that tests if its argument is not null
null_() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
then(Predicates.null_())
null_() - Static method in class net.sf.staccatocommons.lang.predicate.internal.NullPredicates
 
null_() - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that tests if its argument is null
null_() - Static method in class net.sf.staccatocommons.lang.thunk.internal.NullThunk
 
null_() - Static method in class net.sf.staccatocommons.lang.thunk.Thunks
Returns a constant Thunk that always provides null
NullPredicates - Class in net.sf.staccatocommons.lang.predicate.internal
 
NullPredicates() - Constructor for class net.sf.staccatocommons.lang.predicate.internal.NullPredicates
 
Nulls - Class in net.sf.staccatocommons.lang
Class methods to operate with nulls
Nulls() - Constructor for class net.sf.staccatocommons.lang.Nulls
 
nullSafe() - Method in class net.sf.staccatocommons.lang.block.Block
 
nullSafe() - Method in class net.sf.staccatocommons.lang.block.Block2
 
nullSafe() - Method in class net.sf.staccatocommons.lang.block.Block3
 
nullSafe() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
nullSafe() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2
 
nullSafe() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction3
 
nullSafe() - Method in class net.sf.staccatocommons.lang.function.internal.ConstantFunction
 
nullSafe() - Method in class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 
nullSafe() - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
 
nullSafe() - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2.NullSafePredicate2
 
nullSafe() - Method in class net.sf.staccatocommons.lang.predicate.internal.Same2
 
NullThunk<T> - Class in net.sf.staccatocommons.lang.thunk.internal
Thunk of null
NullThunk() - Constructor for class net.sf.staccatocommons.lang.thunk.internal.NullThunk
 
nullToNone(T) - Static method in class net.sf.staccatocommons.lang.Option
Creates an option (defined or not), mapping null values to undefined options, and non nulls to defined option.

O

ObjectUnderConstructionException - Exception in net.sf.staccatocommons.lang.builder
Exception that signals that an object built process has not finished yet
ObjectUnderConstructionException(String) - Constructor for exception net.sf.staccatocommons.lang.builder.ObjectUnderConstructionException
Creates a new ObjectUnderConstructionException with the given message
of(Applicable<? super C, ? extends A>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
of(Applicable2<Tp1, Tp2, ? extends A>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
of(Applicable3<Tp1, Tp2, Tp3, ? extends A>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
of(Applicable<? super D, ? extends A>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2
 
of(Applicable2<Tp1, Tp2, ? extends A>) - Method in class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 
of(Applicable<? super C, ? extends A>) - Method in class net.sf.staccatocommons.lang.function.internal.IdentityFunction
 
of(Applicable<? super B, ? extends A>) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
on(Applicable<? super A, B>) - Static method in class net.sf.staccatocommons.lang.Compare
Answers a new Comparator that performs the comparison between the results of applying the given function to its arguments.
on(Applicable<? super A, ? extends B>) - Static method in class net.sf.staccatocommons.lang.predicate.Equiv
Answers an Predicate2 that performs an equality test to the result of applying the given function to its arguments.
one() - Static method in class net.sf.staccatocommons.lang.internal.Add
 
Option<A> - Class in net.sf.staccatocommons.lang
Option represent optional values, that can either be instances of Some or None.
or(Evaluable<? super A>) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
Returns a predicate that, performs a short-circuit logical-or between this AbstractPredicate's AbstractPredicate.eval(Object) and other
or(Evaluable2<? super A, ? super B>) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
 
or(Evaluable<? super T>) - Method in class net.sf.staccatocommons.lang.predicate.internal.False
 
or(Evaluable<? super T>) - Method in class net.sf.staccatocommons.lang.predicate.internal.True
 
orNull() - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 

P

Pair<A,B> - Class in net.sf.staccatocommons.lang.tuple
Two-components AbstractTuple
Pair(A, B) - Constructor for class net.sf.staccatocommons.lang.tuple.Pair
Creates a new pair.
Predicates - Class in net.sf.staccatocommons.lang.predicate
Factory methods for common predicates

Q

Quadruple<A,B,C,D> - Class in net.sf.staccatocommons.lang.tuple
Four-components AbstractTuple
Quadruple(A, B, C, D) - Constructor for class net.sf.staccatocommons.lang.tuple.Quadruple
Creates a new Quadruple

R

RelevantState<A> - Class in net.sf.staccatocommons.lang.value
An abstract class that is capable of identifying the relevant attributes of an object and implementing with them value comparisons, hashing and string representation in a consisten way.
RelevantState(int, ToStringStyle) - Constructor for class net.sf.staccatocommons.lang.value.RelevantState
Creates a new RelevantState
RelevantState(int) - Constructor for class net.sf.staccatocommons.lang.value.RelevantState
Creates a new RelevantState, using NamedTupleToStringStyle as toStringStyle
RelevantState.StateCollector - Interface in net.sf.staccatocommons.lang.value
An object for collecting the attributes of an object that are part of its relevant state
ReusableBuilder<T> - Interface in net.sf.staccatocommons.lang.builder
A ReusableBuilder is a Builder whose ReusableBuilder.build() method can be invoked more than once, thus the same builder can be used to more than one object
rotateLeft() - Method in class net.sf.staccatocommons.lang.tuple.Triple
Rotates this Triple components to left, creating a new one where the first component is placed at the third position, an the rests, shifted right.
rotateRight() - Method in class net.sf.staccatocommons.lang.tuple.Triple
Rotates this Triple components to right, creating a new one where the third component is placed at the first position, an the rests, shifted right.

S

same(B) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
equivalent to then(Predicates.same(object))
same() - Static method in class net.sf.staccatocommons.lang.predicate.Equiv
Answers an Predicate2 that performs an identity test between its arguments, that it returns true if both are the same object
Same<T> - Class in net.sf.staccatocommons.lang.predicate.internal
 
Same(T) - Constructor for class net.sf.staccatocommons.lang.predicate.internal.Same
Creates a new Same
same() - Static method in class net.sf.staccatocommons.lang.predicate.internal.Same2
 
same(T) - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
Returns a predicate that tests if its argument is the same that the given value
Same2<A> - Class in net.sf.staccatocommons.lang.predicate.internal
 
Same2() - Constructor for class net.sf.staccatocommons.lang.predicate.internal.Same2
 
second() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
second() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
second() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
second() - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Answers a function that returns the second component of a tuple
setValue(B) - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
setWith(A) - Static method in class net.sf.staccatocommons.lang.CollectionBuilder
Answers a new CollectionBuilder that configures a Set, with the given element already added
size() - Method in class net.sf.staccatocommons.lang.None
 
size() - Method in class net.sf.staccatocommons.lang.Some
 
skip(T) - Method in class net.sf.staccatocommons.lang.None
 
skip(T) - Method in class net.sf.staccatocommons.lang.Some
 
softApply(A) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction.Soft
Applies this function, potentially throwing a checked exception
softApply(A, B) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2.Soft
Applies this function, potentially throwing a checked exception
softApply(A, B, C) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction3.Soft
Applies this function, potentially throwing a checked exception
soften(Throwable) - Static method in exception net.sf.staccatocommons.lang.SoftException
Converts an exception into a RuntimeException, either by casting it, if possible, or wrapping it into a SoftException
softEval(A) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate.Soft
Evaluates this predicate, potentially throwing a checked exception
softEval(A, B) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2.Soft
Evaluates this predicate, potentially throwing a checked exception
SoftException - Exception in net.sf.staccatocommons.lang
A SoftException is a RuntimeException that wraps another with only solely purpose of making it unchecked.
softExec(T) - Method in class net.sf.staccatocommons.lang.block.Block
Executes this block, potentially throwing a checked Throwable
softExec(T1, T2) - Method in class net.sf.staccatocommons.lang.block.Block2
Executes this block, potentially throwing a checked Exception
softExec(T1, T2, T3) - Method in class net.sf.staccatocommons.lang.block.Block3
Executes this block, potentially throwing a checked Exception
some(T) - Static method in class net.sf.staccatocommons.lang.Option
Factory method for creating defined values.This method does not guarantee either to return the same or different instances for the same argument.
Some<T> - Class in net.sf.staccatocommons.lang
A defined Option, that is, an option that holds a value.
Some(T) - Constructor for class net.sf.staccatocommons.lang.Some
Creates a Some instance with the given value
some(T) - Static method in class net.sf.staccatocommons.lang.Some
 
someNull() - Static method in class net.sf.staccatocommons.lang.Option
Factory method for creating defined, null values.
someNull() - Static method in class net.sf.staccatocommons.lang.Some
 
sortedSetWith(A) - Static method in class net.sf.staccatocommons.lang.CollectionBuilder
Answers a new CollectionBuilder that configures a SortedSet , with the given element already added
swap() - Method in class net.sf.staccatocommons.lang.tuple.Pair
Creates a new tuple, with swaped components

T

then(Executable<? super T>) - Method in class net.sf.staccatocommons.lang.block.Block
Chains this block with the given executable, creating a new Block that executes this one and then the another one.
then(Executable2<T1, T2>) - Method in class net.sf.staccatocommons.lang.block.Block2
Chains this block with the given executable, creating a new Block2 that executes this one and then the another one.
then(Executable3<T1, T2, T3>) - Method in class net.sf.staccatocommons.lang.block.Block3
Chains this block with the given executable, creating a new Block3 that executes this one and then the another one.
then(Function<? super B, ? extends C>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
then(Predicate<? super B>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
then(Function2<B, B2, C>, Function<? super A2, ? extends B2>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
then(Function2<C, B2, D>, Function<? super A2, ? extends B2>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2
 
then(Function<? super C, ? extends D>) - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2
 
third() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
third() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
third() - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Answers a function that returns the third component of a tuple
Thunks - Class in net.sf.staccatocommons.lang.thunk
Class factory methods for some common Thunks
toArray() - Method in class net.sf.staccatocommons.lang.tuple.AbstractTuple
Converts this tuple into an array
toArray() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
toArray() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
toArray() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
toEquals() - Method in enum net.sf.staccatocommons.lang.value.BasicEquals
Returns the equals test based on this basic equals test result.
toList() - Method in class net.sf.staccatocommons.lang.tuple.AbstractTuple
Gets an unmodifiable list containing each components of this tuple as elements
TopLevelBlock<T> - Class in net.sf.staccatocommons.lang.block.internal
 
TopLevelBlock() - Constructor for class net.sf.staccatocommons.lang.block.internal.TopLevelBlock
 
TopLevelFunction<A,B> - Class in net.sf.staccatocommons.lang.function.internal
 
TopLevelFunction() - Constructor for class net.sf.staccatocommons.lang.function.internal.TopLevelFunction
 
TopLevelPredicate<T> - Class in net.sf.staccatocommons.lang.predicate.internal
 
TopLevelPredicate() - Constructor for class net.sf.staccatocommons.lang.predicate.internal.TopLevelPredicate
 
TopLevelPredicate2<A> - Class in net.sf.staccatocommons.lang.predicate.internal
 
TopLevelPredicate2() - Constructor for class net.sf.staccatocommons.lang.predicate.internal.TopLevelPredicate2
 
toString() - Method in class net.sf.staccatocommons.lang.block.Block
 
toString() - Method in class net.sf.staccatocommons.lang.block.Block2
 
toString() - Method in class net.sf.staccatocommons.lang.block.Block3
 
toString() - Method in class net.sf.staccatocommons.lang.block.internal.TopLevelBlock
 
toString() - Method in class net.sf.staccatocommons.lang.builder.AbstractReusableBuilder
 
toString() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction
 
toString() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2
 
toString() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction3
 
toString() - Method in class net.sf.staccatocommons.lang.function.internal.TopLevelFunction
 
ToString - Class in net.sf.staccatocommons.lang.internal
 
toString(Object) - Static method in class net.sf.staccatocommons.lang.internal.ToString
Invokes ToStringBuilder.reflectionToString with the NamedTuple ToStringStyle
toString() - Method in class net.sf.staccatocommons.lang.None
 
toString() - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
toString() - Method in class net.sf.staccatocommons.lang.predicate.internal.TopLevelPredicate
 
toString() - Method in class net.sf.staccatocommons.lang.predicate.internal.TopLevelPredicate2
 
toString() - Method in class net.sf.staccatocommons.lang.Some
 
toString() - Method in class net.sf.staccatocommons.lang.thunk.internal.UndefinedThunk
 
toString() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
toString() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
toString() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
toString(A) - Method in class net.sf.staccatocommons.lang.value.RelevantState
Answers a string representation for the given object, based on the attributes collected by RelevantState.collectState(Object, StateCollector) It is safe to use the result as an implementation of Object.toString() for object
toTuple2() - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Answers a function that creates Tuple2s for its arguments
toTuple3() - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Answers a function that creates Tuple3s for its arguments
toUnmodifiableCollection() - Static method in class net.sf.staccatocommons.lang.CollectionBuilder
Answers a constant function that returns an Unmodifiable view of its collection argument
toUnmodifiableList() - Static method in class net.sf.staccatocommons.lang.CollectionBuilder
Answers a constant function that returns an Unmodifiable view of its list argument
toUnmodifiableMap() - Static method in class net.sf.staccatocommons.lang.MapBuilder
A constant function that returns an unmodifiable view of its map argument
toUnmodifiableSet() - Static method in class net.sf.staccatocommons.lang.CollectionBuilder
Answers a constant function that returns an Unmodifiable view of its SortedSet argument
toUnmodifiableSortedMap() - Static method in class net.sf.staccatocommons.lang.MapBuilder
A constant function that returns an unmodifiable view of its sortedmap argument
toUnmodifiableSortedSet() - Static method in class net.sf.staccatocommons.lang.CollectionBuilder
Answers a constant function that returns an Unmodifiable view of its SortedSet argument
treeMapWith(K, V) - Static method in class net.sf.staccatocommons.lang.MapBuilder
Creates a new MapBuilder using a TreeMap as map implementation and the first key and value.
Triple<A,B,C> - Class in net.sf.staccatocommons.lang.tuple
Three-components AbstractTuple.
Triple(A, B, C) - Constructor for class net.sf.staccatocommons.lang.tuple.Triple
Creates a new Triple
True<T> - Class in net.sf.staccatocommons.lang.predicate.internal
 
True() - Constructor for class net.sf.staccatocommons.lang.predicate.internal.True
 
true_() - Static method in class net.sf.staccatocommons.lang.predicate.Predicates
 
Tuples - Class in net.sf.staccatocommons.lang.tuple
Class methods hub for creating AbstractTuples, and obtaining Tuple-related functions
Tuples() - Constructor for class net.sf.staccatocommons.lang.tuple.Tuples
 
TupleToStringStyle - Class in net.sf.staccatocommons.lang.tuple.internal
 
TupleToStringStyle() - Constructor for class net.sf.staccatocommons.lang.tuple.internal.TupleToStringStyle
Creates a new TupleToStringStyle

U

uncurry() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction2
 
uncurry() - Method in class net.sf.staccatocommons.lang.function.AbstractFunction3
 
uncurry() - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
 
undefined() - Static method in class net.sf.staccatocommons.lang.thunk.internal.UndefinedThunk
 
undefined() - Static method in class net.sf.staccatocommons.lang.thunk.Thunks
Returns a thunk that when evaluated throws a RuntimeException.
UndefinedThunk<A> - Class in net.sf.staccatocommons.lang.thunk.internal
 
UndefinedThunk() - Constructor for class net.sf.staccatocommons.lang.thunk.internal.UndefinedThunk
 
unwrap() - Method in class net.sf.staccatocommons.lang.CollectionBuilder
Disables wrapping, which means that a built collection will be returned just as it was created.
unwrap() - Method in class net.sf.staccatocommons.lang.MapBuilder
Disables wrapping, which means that a built map will be returned just as it was created.

V

value() - Method in class net.sf.staccatocommons.lang.None
 
value() - Method in class net.sf.staccatocommons.lang.Option
Gets the optional value, if defined, or throws an NoSuchElementException, otherwise.
value() - Method in class net.sf.staccatocommons.lang.Some
 
value() - Method in class net.sf.staccatocommons.lang.thunk.internal.CalendarThunk
 
value() - Method in class net.sf.staccatocommons.lang.thunk.internal.DateThunk
 
value() - Method in class net.sf.staccatocommons.lang.thunk.internal.FailThunk
 
value() - Method in class net.sf.staccatocommons.lang.thunk.internal.NullThunk
 
value() - Method in class net.sf.staccatocommons.lang.thunk.internal.UndefinedThunk
 
value() - Static method in class net.sf.staccatocommons.lang.thunk.Thunks
Returns a Function that evaluates its Thunk argument
valueOf(String) - Static method in enum net.sf.staccatocommons.lang.value.BasicEquals
Returns the enum constant of this type with the specified name.
valueOrElse(T) - Method in class net.sf.staccatocommons.lang.None
 
valueOrElse(Thunk<? extends T>) - Method in class net.sf.staccatocommons.lang.None
 
valueOrElse(A) - Method in class net.sf.staccatocommons.lang.Option
Returns the value of this Option, or the provided object if undefined
valueOrElse(Thunk<? extends A>) - Method in class net.sf.staccatocommons.lang.Option
Returns the value of this Option, or the provided object if undefined
valueOrElse(T) - Method in class net.sf.staccatocommons.lang.Some
 
valueOrElse(Thunk<? extends T>) - Method in class net.sf.staccatocommons.lang.Some
 
valueOrHarden(Thunk<T>) - Static method in exception net.sf.staccatocommons.lang.SoftException
Tries to return thunk.value().
valueOrNull() - Method in class net.sf.staccatocommons.lang.None
 
valueOrNull() - Method in class net.sf.staccatocommons.lang.Option
Returns the value of this Option, or null, if undefined.
valueOrNull() - Method in class net.sf.staccatocommons.lang.Some
 
values() - Static method in enum net.sf.staccatocommons.lang.value.BasicEquals
Returns an array containing the constants of this enum type, in the order they are declared.

W

with(A) - Method in class net.sf.staccatocommons.lang.CollectionBuilder
Adds an element to the list
with(K, V) - Method in class net.sf.staccatocommons.lang.MapBuilder
Adds a key-value pair to the map
with(Map.Entry<K, V>) - Method in class net.sf.staccatocommons.lang.MapBuilder
Adds an entry to the map
withEffectOnFalse(Executable<A>) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
withEffectOnTrue(Executable<A>) - Method in class net.sf.staccatocommons.lang.predicate.AbstractPredicate
 
withIf(A, Evaluable<? super A>) - Method in class net.sf.staccatocommons.lang.CollectionBuilder
Adds an element to the list if it satisfies the given condition
withWrapper(Applicable<B, B>) - Method in class net.sf.staccatocommons.lang.CollectionBuilder
Sets the wrapper function, that is, the Applicable to apply to the resulting collection before returning it through CollectionBuilder.build().
withWrapper(Applicable<M, M>) - Method in class net.sf.staccatocommons.lang.MapBuilder
Sets the wrapper function, that is, the Applicable to apply to the resulting map before returning it through MapBuilder.build().

Z

zip(Applicable<? super A, ? extends C>, Applicable<? super B, ? extends D>) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Combines two functions into one that takes a pair and applies the first function to the first component, and the second function to the second component, and returns the pair of results.

_

_(T1, T2, T3, T4) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Creates a new Quadruple
_(T1, T2, T3) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Creates a new Tuple3
_(T1, T2) - Static method in class net.sf.staccatocommons.lang.tuple.Tuples
Creates a new Tuple2
_0() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
_0() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
_0() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
_1() - Method in class net.sf.staccatocommons.lang.tuple.Pair
 
_1() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
_1() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
_2() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 
_2() - Method in class net.sf.staccatocommons.lang.tuple.Triple
 
_3() - Method in class net.sf.staccatocommons.lang.tuple.Quadruple
 

A B C D E F G H I L M N O P Q R S T U V W Z _

Copyright © 2010-2012 Staccatocommons. All Rights Reserved.