A C D E F I M N O P R S T U V W Z _

A

abs(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers the absolute value of the given number.
abs() - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers a function that returns the absolute value of its argument, as specified by NumberType.abs(Object)
accumulate(A) - Method in interface net.sf.staccatocommons.defs.reduction.Accumulator
Adds an element to this accumulator
Accumulator<A,B> - Interface in net.sf.staccatocommons.defs.reduction
An imperative accumulator.
add(A, A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Adds two numbers, and returns the result.
add() - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers a 2-arguments function that perform addition as specified by NumberType.add(Object, Object)
add(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers function that adds the given number to its argument, as specified by NumberType.add(Object, Object).
and(Evaluable<? super A>) - Method in interface net.sf.staccatocommons.defs.predicate.Predicate
Returns a predicate that performs a short-circuit logical-and between this Predicate's Evaluable.eval(Object) and other
and(Evaluable2<? super A, ? super B>) - Method in interface net.sf.staccatocommons.defs.predicate.Predicate2
Returns a predicate that performs a short-circuit logical-and between this Predicate2's Evaluable2.eval(Object,Object) and other
andNotNull() - Method in interface net.sf.staccatocommons.defs.predicate.Predicate
Returns a null-safe predicate that, when evaluated, answers false if its argument is null, or evaluates this predicate, otherwise.
Applicable<T,R> - Interface in net.sf.staccatocommons.defs
Applicables are transformations that take one argument and have a return value, by implementing an Applicable.apply(Object) method.
Applicable2<T1,T2,R> - Interface in net.sf.staccatocommons.defs
Applicable2s are transformations that take two arguments and have a return value, by implementing an Applicable2.apply(Object, Object) method
Applicable3<A,B,C,D> - Interface in net.sf.staccatocommons.defs
Applicable3s are transformations that take three arguments and have a return value, by implementing an Applicable3.apply(Object, Object, Object) method
Applicative - Annotation Type in net.sf.staccatocommons.defs
Applicable is an annotation for abstract types that have code-block/command/strategy/closure/lambda semantics, with an only abstract method that implements such code, called applicative method.
apply(T) - Method in interface net.sf.staccatocommons.defs.Applicable
Performs a transformation on the given element, and returns its result.
apply(T1, T2) - Method in interface net.sf.staccatocommons.defs.Applicable2
Performs a transformation on the given element, and returns its result.
apply(A, B, C) - Method in interface net.sf.staccatocommons.defs.Applicable3
Performs a transformation on the given element, and returns its result.
apply(A) - Method in interface net.sf.staccatocommons.defs.function.Function2
Partially applies the function passing just its first parameter
apply(A, B) - Method in interface net.sf.staccatocommons.defs.function.Function2
Applies the function
apply(A) - Method in interface net.sf.staccatocommons.defs.function.Function3
Partially applies the function, passing only its first argument
apply(A, B) - Method in interface net.sf.staccatocommons.defs.function.Function3
Partially applies the function, passing only its first and second arguments
apply(A, B, C) - Method in interface net.sf.staccatocommons.defs.function.Function3
 

C

contains(T) - Method in interface net.sf.staccatocommons.defs.partial.ContainsAware
Answers if this contains-aware contains the given element
contains(A, B) - Method in interface net.sf.staccatocommons.defs.type.ContainsAwareType
Answers if the given container that is aware of the concept of contain elements, contains the given element
ContainsAware<T> - Interface in net.sf.staccatocommons.defs.partial
Interface for objects that understand ContainsAware.contains(Object) message.
ContainsAwareType<A,B> - Interface in net.sf.staccatocommons.defs.type
A Strategy for asking if an object contains another one

D

decrement(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Decrements the given number.
Delayable<A,B> - Interface in net.sf.staccatocommons.defs
Delayables are delayed transformations that take one argument and return a thunk that will perform the processing when evaluated, by implementing a Delayable.delayed(Object) method.
Delayable2<A,B,C> - Interface in net.sf.staccatocommons.defs
Delayable2s are delayed transformations that two arguments and return a thunk that will perform the actual processing when evaluated, by implementing a Delayable2.delayed(Object, Object) method.
Delayable3<A,B,C,D> - Interface in net.sf.staccatocommons.defs
Delayable3s are delayed transformations that take three arguments and return a thunk that will perform the actual processing when evaluated, by implementing a Delayable3.delayed(Object, Object, Object) method.
delayed(A) - Method in interface net.sf.staccatocommons.defs.Delayable
Asynchronously applies this Delayable, by returning a Thunk that will perform the actual transformation each time it is evaluated.
delayed(A, B) - Method in interface net.sf.staccatocommons.defs.Delayable2
Asynchronously applies this Delayable2, by returning a Thunk that will perform the actual transformation each time it is evaluated.
delayed(A, B, C) - Method in interface net.sf.staccatocommons.defs.Delayable3
Asynchronously applies this Delayable3, by returning a Thunk that will perform the actual transformation each time it is evaluated.
delayedValue(Thunk<? extends A>) - Method in interface net.sf.staccatocommons.defs.Delayable
Asynchronously applies this Delayable on the thunk's value, by returning a Thunk that will perform the actual transformation each time it is evaluated.
delayedValue(Thunk<A>, Thunk<B>) - Method in interface net.sf.staccatocommons.defs.Delayable2
Asynchronously applies this Delayable2, by returning a Thunk that will perform the actual transformation on the given thunk's values each time it is evaluated.
delayedValue(Thunk<A>, Thunk<B>, Thunk<C>) - Method in interface net.sf.staccatocommons.defs.Delayable3
Asynchronously applies this Delayable3, by returning a Thunk that will perform the actual transformation on the given thunk's values each time it is evaluated.
divide(A, A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Divides two numbers, and returns the result.

E

each(Executable<? super A>) - Method in interface net.sf.staccatocommons.defs.ProtoMonad
Answers a ProtoMonad that executes the given block for each of its elements.
EmptyAware - Interface in net.sf.staccatocommons.defs.partial
Interface for objects that understand EmptyAware.isEmpty() message.
EmptyAwareType<A> - Interface in net.sf.staccatocommons.defs.type
A Strategy for asking if an object is empty
equal(B) - Method in interface net.sf.staccatocommons.defs.function.Function
Returns a predicate that answers if the result of applying this function is equals to the given object.
eval(T) - Method in interface net.sf.staccatocommons.defs.Evaluable
Evaluates an argument.
eval(A, B) - Method in interface net.sf.staccatocommons.defs.Evaluable2
Evaluates two argument.
Evaluable<T> - Interface in net.sf.staccatocommons.defs
Evaluables are boolean conditions over an argument that can be tested using its Evaluable.eval(Object) message.
Evaluable2<A,B> - Interface in net.sf.staccatocommons.defs
Evaluable2s are boolean conditions over two argument that can be tested using its Evaluable2.eval(Object, Object) message.
exec(T) - Method in interface net.sf.staccatocommons.defs.Executable
Performs a side-effect computation.
exec(A, B) - Method in interface net.sf.staccatocommons.defs.Executable2
Performs a side-effect computation.
exec(T1, T2, T3) - Method in interface net.sf.staccatocommons.defs.Executable3
Performing a side-effect computation.
Executable<T> - Interface in net.sf.staccatocommons.defs
Executables are computations that take one argument and whose result is a side effect, instead of a return value.
Executable2<A,B> - Interface in net.sf.staccatocommons.defs
Executable2s are computations that take two arguments and whose result is a side effect, instead of a return value.
Executable3<T1,T2,T3> - Interface in net.sf.staccatocommons.defs
Executable3s are computations that take three arguments and whose result is a side effect, instead of a return value.

F

filter(Evaluable<? super A>) - Method in interface net.sf.staccatocommons.defs.ProtoMonad
Preserves elements that satisfy the given predicate
first() - Method in interface net.sf.staccatocommons.defs.partial.FirstAware
Answers the first component
FirstAware<A> - Interface in net.sf.staccatocommons.defs.partial
Interface for accessing the first element of a tuple
flip() - Method in interface net.sf.staccatocommons.defs.function.Function2
Inverts function parameters order
forEach(Executable<? super A>) - Method in interface net.sf.staccatocommons.defs.ProtoMonad
Executes the given Executable for each element in this ProtoMonad.
fourth() - Method in interface net.sf.staccatocommons.defs.partial.FourthAware
 
FourthAware<A> - Interface in net.sf.staccatocommons.defs.partial
Interface for accessing the fourth element of a tuple
fromInt(int) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers a, eventually approximate, representation of the given integer value in this NumberType
Function<A,B> - Interface in net.sf.staccatocommons.defs.function
Functions are rich interfaced Applicables - one argument composable, Delayable and NullSafeAware tranformations.
Function2<A,B,C> - Interface in net.sf.staccatocommons.defs.function
Function2s are rich interfaced Applicable2s - two arguments Delayable2 and NullSafeAware transformations.
Function3<A,B,C,D> - Interface in net.sf.staccatocommons.defs.function
Function3s are rich interfaced Applicable3s - two arguments Delayable3 and NullSafeAware transformations.

I

increment(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Increments a given number For any Number x, a side-effect-free NumberTypes nt must grant that nt.increment(x) == nt.add(x, nt.one()) As a particular case, it must grant that nt.compare(nt.one(), nt.increment(nt.zero())) == 0
IntegralType<A> - Interface in net.sf.staccatocommons.defs.type
NumberType with extra messages restricted to integral types like integers and BigIntegers
inverse(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers that inverse of a given number, that is, n^-1 For any number x for which division is defined, a NumberType nt must grant that nt.divide(nt.one(), x).compareTo(nt.inverse(x)) == 0
inverse() - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers a function that returns the ivnerse of its argument, as defined by NumberType.inverse(Object)
isEmpty() - Method in interface net.sf.staccatocommons.defs.partial.EmptyAware
Answers if this EmptyAware is empty.
isEmpty() - Method in interface net.sf.staccatocommons.defs.partial.SizeAware
Answers if this SizeAware is empty.
isEmpty(A) - Method in interface net.sf.staccatocommons.defs.type.EmptyAwareType
Answers if the given object that is aware of the concept of "emptyness" is empty or not.
isEven(A) - Method in interface net.sf.staccatocommons.defs.type.IntegralType
Answers if the given number is even
isEven() - Method in interface net.sf.staccatocommons.defs.type.IntegralType
Answers a predicate that returns if its argument is even, as specified by IntegralType.isEven(Object)
isIdentity() - Method in interface net.sf.staccatocommons.defs.function.Function
Answers if this function is the identity function, that is, the function that answers the argument it receives
isNegative(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers if the given number is less than zero For any Number x, a NumberTypes nt must grant that nt.isZero(x) == (nt.compare(x, zero()) < 0)
isOdd(A) - Method in interface net.sf.staccatocommons.defs.type.IntegralType
Answers if the given number is odd, that is, is not even.
isOdd() - Method in interface net.sf.staccatocommons.defs.type.IntegralType
Answers a predicate that returns if its argument is odd, as specified by IntegralType.isOdd(Object)
isPositive(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers if the given number is greater than zero * For any Number x, a NumberTypes nt must grant that nt.isZero(x) == (nt.compare(x, zero()) > 0)
isZero(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers if the given number is zero.

M

map(Applicable<? super A, ? extends B>) - Method in interface net.sf.staccatocommons.defs.ProtoMonad
Transforms each element using the given function
multiply(A, A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Multiplies two numbers, and returns the result
multiply() - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers a 2-arguments function that perform multiplication as specified by NumberType.multiply(Object, Object)

N

negate(A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Negates a given number
negate() - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers a function that negates its argument, as specified by NumberType.negate(Object)
net.sf.staccatocommons.defs - package net.sf.staccatocommons.defs
This package contains function-like interfaces of different arities - number or arguments -, and interfaces that describe container-like objects
net.sf.staccatocommons.defs.function - package net.sf.staccatocommons.defs.function
 
net.sf.staccatocommons.defs.partial - package net.sf.staccatocommons.defs.partial
 
net.sf.staccatocommons.defs.predicate - package net.sf.staccatocommons.defs.predicate
 
net.sf.staccatocommons.defs.reduction - package net.sf.staccatocommons.defs.reduction
 
net.sf.staccatocommons.defs.tuple - package net.sf.staccatocommons.defs.tuple
 
net.sf.staccatocommons.defs.type - package net.sf.staccatocommons.defs.type
 
newAccumulator() - Method in interface net.sf.staccatocommons.defs.reduction.Reduction
Answers a new, reseted accumulator to perform the reduction
not() - Method in interface net.sf.staccatocommons.defs.predicate.Predicate
Negates this Predicate
not() - Method in interface net.sf.staccatocommons.defs.predicate.Predicate2
Negates this Predicate
notNull() - Method in interface net.sf.staccatocommons.defs.function.Function
Returns a predicate that answers if the result of applying this function is not null.
null_() - Method in interface net.sf.staccatocommons.defs.function.Function
Returns a predicate that answers if the result of applying this function is null.
nullSafe() - Method in interface net.sf.staccatocommons.defs.function.Function
Answers a new function that returns null if is argument is null, or the result of applying this function, otherwise.
nullSafe() - Method in interface net.sf.staccatocommons.defs.function.Function2
Answers a new function that returns null if any of its arguments is null, or the result of applying this function, otherwise.
nullSafe() - Method in interface net.sf.staccatocommons.defs.function.Function3
Answers a new function that returns null if any of its arguments is null, or the result of applying this function, otherwise.
NullSafe - Annotation Type in net.sf.staccatocommons.defs
NullSafe restriction annotates Applicatives that can handle nulls as arguments, that is, that will not throw a NullPointerException or IllegalArgumentException if any of its arguments is null
nullSafe() - Method in interface net.sf.staccatocommons.defs.partial.NullSafeAware
Answers a new Applicative of type A that accepts nulls for its applicative method, that is, it will not throw any exception if any of its arguments is null.
nullSafe() - Method in interface net.sf.staccatocommons.defs.predicate.Predicate2
Answers a Predicate2 that returns true if both arguments are null, false if only one of them is null, or evalutes this predicate, otherwise.
NullSafeAware<A> - Interface in net.sf.staccatocommons.defs.partial
A NullSafeAwares are object that may be converted to an Applicative object of type A that is NullSafe, that is, that accepts nulls in its applicative method.
NumberType<A> - Interface in net.sf.staccatocommons.defs.type
A Strategy for dealing with Numbers is a polymorphic way.

O

of(Applicable<? super C, ? extends A>) - Method in interface net.sf.staccatocommons.defs.function.Function
Composes this function with another Applicable, resulting in a new Function that when applied returns this.apply(other.apply(arg)
of(Applicable2<Tp1, Tp2, ? extends A>) - Method in interface net.sf.staccatocommons.defs.function.Function
Composes this function with another Applicable2, resulting in a new Function2 that when applied returns this.apply(other.apply(arg0, arg1)
of(Applicable3<Tp1, Tp2, Tp3, ? extends A>) - Method in interface net.sf.staccatocommons.defs.function.Function
Composes this function with another Applicable3, resulting in a new Function3 that when applied returns this.apply(other.apply(arg0,arg1,arg2)
of(Applicable<? super D, ? extends A>) - Method in interface net.sf.staccatocommons.defs.function.Function2
 
of(Applicable<? super B, ? extends A>) - Method in interface net.sf.staccatocommons.defs.predicate.Predicate
Composes this predicate with another Applicable, resulting in a new Predicate that when applied returns this.eval(other.apply(arg)
of(Applicable<D, A>) - Method in interface net.sf.staccatocommons.defs.reduction.Reduction
Composes this reduction with a function, by returning a new Reduction that will apply this reduction to the results of applying the given function to each element For example, the following code: Reductions.
one() - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers the representation of 1 for this NumberType
or(Evaluable<? super A>) - Method in interface net.sf.staccatocommons.defs.predicate.Predicate
Returns a predicate that, performs a short-circuit logical-or between this Predicate's Evaluable.eval(Object) and other
or(Evaluable2<? super A, ? super B>) - Method in interface net.sf.staccatocommons.defs.predicate.Predicate2
Returns a predicate that, performs a short-circuit logical-or between this Predicate2's Evaluable2.eval(Object,Object) and other
orNull() - Method in interface net.sf.staccatocommons.defs.predicate.Predicate
Returns a null-safe predicate that, when evaluated, answers true if its argument is null, or evaluates this predicate, otherwise.

P

Predicate<A> - Interface in net.sf.staccatocommons.defs.predicate
A rich Evaluable
Predicate2<A,B> - Interface in net.sf.staccatocommons.defs.predicate
A rich Evaluable2
ProtoMonad<Type,RawType,A> - Interface in net.sf.staccatocommons.defs
Very basic definition of a type that can act as a container or computation of other objects, with mapping, filtering and potentially asynchronous iteration capabilities

R

Reduction<A,B> - Interface in net.sf.staccatocommons.defs.reduction
A Reduction are aggregate-functions-like objects that encapsulates a computation with effect that processes each element of a sequence of objects, calculating intermediate, accumulative results.
remainder(A, A) - Method in interface net.sf.staccatocommons.defs.type.IntegralType
Returns the reminder of integral dividing n1 over n2
remainder() - Method in interface net.sf.staccatocommons.defs.type.IntegralType
Answers a binary function that return reminder as specified by IntegralType.remainder(Object, Object)
replace(A, A) - Method in interface net.sf.staccatocommons.defs.ProtoMonad
Replaces all elements equal to the give one with the given replacement
replaceNull(A) - Method in interface net.sf.staccatocommons.defs.ProtoMonad
Replaces all null elements with the given replacement
rotateLeft() - Method in interface net.sf.staccatocommons.defs.tuple.Tuple3
Rotates this Tuple3 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 interface net.sf.staccatocommons.defs.tuple.Tuple3
Rotates this Tuple3 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 interface net.sf.staccatocommons.defs.function.Function
Returns a predicate that answers if the result of applying this function is the same that the given object.
second() - Method in interface net.sf.staccatocommons.defs.partial.SecondAware
Answers the second component
SecondAware<A> - Interface in net.sf.staccatocommons.defs.partial
Interface for accessing the second element of a tuple
size() - Method in interface net.sf.staccatocommons.defs.partial.SizeAware
Answers the size of this size aware.
size(A) - Method in interface net.sf.staccatocommons.defs.type.SizeAwareType
Answeres the size of the given object that understand the concept of "having size".
SizeAware - Interface in net.sf.staccatocommons.defs.partial
Interface for objects that understand SizeAware.size() message.
SizeAwareType<A> - Interface in net.sf.staccatocommons.defs.type
A Strategy for asking the size of an object.
skip(A) - Method in interface net.sf.staccatocommons.defs.ProtoMonad
Preserves all elements except those that are equal to the given one.
skipNull() - Method in interface net.sf.staccatocommons.defs.ProtoMonad
Preserves all elements except nulls Equivalent to filter(Predicates.notNull())
subtract(A, A) - Method in interface net.sf.staccatocommons.defs.type.NumberType
Subtracts two numbers, and returns the result.
swap() - Method in interface net.sf.staccatocommons.defs.tuple.Tuple2
answers a new Tuple2, with swaped components

T

then(Function<? super B, ? extends C>) - Method in interface net.sf.staccatocommons.defs.function.Function
Pipeline combination, equivalent to function composition, like but with receptor and argument interchanged.
then(Function2<B, B2, C>, Function<? super A2, ? extends B2>) - Method in interface net.sf.staccatocommons.defs.function.Function
Merge combination.
then(Predicate<? super B>) - Method in interface net.sf.staccatocommons.defs.function.Function
Predicate composition, like Predicate.of(Applicable), but with receptor and argument interchanged.
then(Function<? super C, ? extends D>) - Method in interface net.sf.staccatocommons.defs.function.Function2
Function composition, like Function.of(Applicable2), but with receptor and argument interchanged.
then(Function2<C, B2, D>, Function<? super A2, ? extends B2>) - Method in interface net.sf.staccatocommons.defs.function.Function2
Answers a three arg function that combines this function with other function, using a binaryFunction to merge the results.
then(Applicable<B, D>) - Method in interface net.sf.staccatocommons.defs.reduction.Reduction
Composes the given function with this reduction, by returning a new Reduction that applies the function to the resulting element of the reduction For example, the following code: Reductions.
third() - Method in interface net.sf.staccatocommons.defs.partial.ThirdAware
Answers the third component
ThirdAware<A> - Interface in net.sf.staccatocommons.defs.partial
Interface for accessing the third element of a tuple
Thunk<T> - Interface in net.sf.staccatocommons.defs
A Thunk is a computation that takes no arguments a returns a value.
toArray() - Method in interface net.sf.staccatocommons.defs.partial.ToListAware
Converts this tuple into an array
toList() - Method in interface net.sf.staccatocommons.defs.partial.ToListAware
Gets an unmodifiable list containing each components of this tuple as elements
ToListAware<A> - Interface in net.sf.staccatocommons.defs.partial
 
Tuple2<A,B> - Interface in net.sf.staccatocommons.defs.tuple
 
Tuple3<A,B,C> - Interface in net.sf.staccatocommons.defs.tuple
 
Tuple4<A,B,C,D> - Interface in net.sf.staccatocommons.defs.tuple
 

U

uncurry() - Method in interface net.sf.staccatocommons.defs.function.Function2
Uncurries this function, by returning a Function that takes a single pair, being its components each of the original function parameters
uncurry() - Method in interface net.sf.staccatocommons.defs.function.Function3
Uncurries this function, by returning a Function that takes a single triple, being its components each of the original function parameters
uncurry() - Method in interface net.sf.staccatocommons.defs.predicate.Predicate2
Uncurries this predicate, by returning a Predicate that takes a single pair, being its components each of the original predicate parameters

V

value() - Method in interface net.sf.staccatocommons.defs.reduction.Accumulator
Answers the accumulated value
value() - Method in interface net.sf.staccatocommons.defs.Thunk
Returns the value provided.

W

withEffectOnFalse(Executable<A>) - Method in interface net.sf.staccatocommons.defs.predicate.Predicate
Adds a a side effect to this predicate, that will be evaluated whenever the predicate evaluation is false
withEffectOnTrue(Executable<A>) - Method in interface net.sf.staccatocommons.defs.predicate.Predicate
Adds a side effect to this predicate, that will be evaluated whenever the predicate evaluation is true

Z

zero() - Method in interface net.sf.staccatocommons.defs.type.NumberType
Answers the representation of 0 for this NumberType

_

_0() - Method in interface net.sf.staccatocommons.defs.partial.FirstAware
Synonym for FirstAware.first()
_1() - Method in interface net.sf.staccatocommons.defs.partial.SecondAware
Synonym for SecondAware.second()
_2() - Method in interface net.sf.staccatocommons.defs.partial.ThirdAware
Synonym for ThirdAware.third()
_3() - Method in interface net.sf.staccatocommons.defs.partial.FourthAware
Synonym for FourthAware.fourth()

A C D E F I M N O P R S T U V W Z _

Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads