A C D E G I M O R T U 
All Classes All Packages

A

Action<T> - Class in eu.ciechanowiec.conditional
Entity that can: execute a predefined command in a void manner (see get(...) methods of this class); execute a predefined command and return the result of that execution (see execute(...) methods of this class).
Action(Runnable) - Constructor for class eu.ciechanowiec.conditional.Action
Constructs an action based on the passed Runnable.
Action(Callable<T>) - Constructor for class eu.ciechanowiec.conditional.Action
Constructs an action based on the passed Callable.
ActionsList - Class in eu.ciechanowiec.conditional
Entity that stores Actions and provides basic API pertaining to the stored elements.
ActionsList() - Constructor for class eu.ciechanowiec.conditional.ActionsList
Constructs an instance of an ActionsList that stores Actions and provides basic API pertaining to the stored elements.
actionsOnFalse() - Method in class eu.ciechanowiec.conditional.Conditional
Retrieves by reference an ActionsList that stores all actions submitted to this conditional and bound to a false value.
actionsOnTrue() - Method in class eu.ciechanowiec.conditional.Conditional
Retrieves by reference an ActionsList that stores all actions submitted to this conditional and bound to a true value.
add(Action<T>) - Method in class eu.ciechanowiec.conditional.ActionsList
Adds the passed Action to this actions list.

C

clear() - Method in class eu.ciechanowiec.conditional.ActionsList
Removes all Actions from this actions list.
conditional(boolean) - Static method in class eu.ciechanowiec.conditional.Conditional
Returns a new instance of a Conditional that describes the passed boolean value (true or false).
Conditional - Class in eu.ciechanowiec.conditional
Basic entity of Conditional library, that replaces if-else statements and ternary operators with a featured fluent interface.

D

describedValue() - Method in class eu.ciechanowiec.conditional.Conditional
Returns the value described by this conditional (true or false).
discardActionsOnFalse() - Method in class eu.ciechanowiec.conditional.Conditional
Removes all actions submitted to this conditional and bound to a false value.
discardActionsOnTrue() - Method in class eu.ciechanowiec.conditional.Conditional
Removes all actions submitted to this conditional and bound to a true value.
discardAllActions() - Method in class eu.ciechanowiec.conditional.Conditional
Removes all actions submitted to this conditional.

E

eu.ciechanowiec.conditional - package eu.ciechanowiec.conditional
 
ExceptionThrower - Interface in eu.ciechanowiec.conditional
Entity that throws or swallows passed Exceptions, depending on the implementation.
ExceptionThrowerActive - Class in eu.ciechanowiec.conditional
Entity that throws an Exception when an implemented method is called.
ExceptionThrowerActive() - Constructor for class eu.ciechanowiec.conditional.ExceptionThrowerActive
Constructs an instance of an ExceptionThrowerActive.
ExceptionThrowerVoid - Class in eu.ciechanowiec.conditional
Entity that does nothing when an implemented method is called.
ExceptionThrowerVoid() - Constructor for class eu.ciechanowiec.conditional.ExceptionThrowerVoid
Constructs an instance of a ExceptionThrowerVoid.
execute() - Method in class eu.ciechanowiec.conditional.Action
Executes this action.
execute() - Method in class eu.ciechanowiec.conditional.Conditional
Executes all submitted actions, bound to the value described by this conditional.
execute(int) - Method in class eu.ciechanowiec.conditional.Conditional
Executes the specified amount of cycles all submitted actions, bound to the value described by this conditional.
execute(Class<X>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and sets the passed exception class as a unary element of an exception list belonging to this method declaration (throws... clause).
execute(Class<X>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes all submitted actions, bound to the value described by this conditional, and sets the passed exception class as a unary element of an exception list belonging to this method declaration (throws... clause).
execute(Class<X1>, Class<X2>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and respectively sets the passed exception classes as elements of an exception list belonging to this method declaration (throws... clause).
execute(Class<X1>, Class<X2>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes all submitted actions, bound to the value described by this conditional, and respectively sets the passed exception classes as elements of an exception list belonging to this method declaration (throws... clause).
execute(Class<X1>, Class<X2>, Class<X3>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and respectively sets the passed exception classes as elements of an exception list belonging to this method declaration (throws... clause).
execute(Class<X1>, Class<X2>, Class<X3>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes all submitted actions, bound to the value described by this conditional, and respectively sets the passed exception classes as elements of an exception list belonging to this method declaration (throws... clause).
execute(Class<X1>, Class<X2>, Class<X3>, Class<X4>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and respectively sets the passed exception classes as elements of an exception list belonging to this method declaration (throws... clause).
execute(Class<X1>, Class<X2>, Class<X3>, Class<X4>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes all submitted actions, bound to the value described by this conditional, and respectively sets the passed exception classes as elements of an exception list belonging to this method declaration (throws... clause).
executeAll() - Method in class eu.ciechanowiec.conditional.ActionsList
Executes, subsequently and starting from the first one, all Actions stored in this actions list.

G

get() - Method in class eu.ciechanowiec.conditional.Action
Executes this action and returns a return value that is produced in the result of execution of this action.
get(Class<S>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and returns a return value that is produced in the result of execution of this action, but cast into a specified type.
get(Class<S>, Class<X>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and returns a return value that is produced in the result of execution of this action, but cast into a specified type.
get(Class<S>, Class<X1>, Class<X2>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and returns a return value that is produced in the result of execution of this action, but cast into a specified type.
get(Class<S>, Class<X1>, Class<X2>, Class<X3>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and returns a return value that is produced in the result of execution of this action, but cast into a specified type.
get(Class<S>, Class<X1>, Class<X2>, Class<X3>, Class<X4>) - Method in class eu.ciechanowiec.conditional.Action
Executes this action and returns a return value that is produced in the result of execution of this action, but cast into a specified type.
get(Class<T>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes a unary action submitted to this conditional and bound to the value described by this conditional; after that, returns a return value that is produced in the result of execution of the action, but cast into a specified type.
get(Class<T>, Class<X>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes a unary action submitted to this conditional and bound to the value described by this conditional; after that, returns a return value that is produced in the result of execution of the action, but cast into a specified type.
get(Class<T>, Class<X1>, Class<X2>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes a unary action submitted to this conditional and bound to the value described by this conditional; after that, returns a return value that is produced in the result of execution of the action, but cast into a specified type.
get(Class<T>, Class<X1>, Class<X2>, Class<X3>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes a unary action submitted to this conditional and bound to the value described by this conditional; after that, returns a return value that is produced in the result of execution of the action, but cast into a specified type.
get(Class<T>, Class<X1>, Class<X2>, Class<X3>, Class<X4>) - Method in class eu.ciechanowiec.conditional.Conditional
Executes a unary action submitted to this conditional and bound to the value described by this conditional; after that, returns a return value that is produced in the result of execution of the action, but cast into a specified type.
getAll() - Method in class eu.ciechanowiec.conditional.ActionsList
Retrieves by reference all instances of Actions stored in this actions list.
getFirst() - Method in class eu.ciechanowiec.conditional.ActionsList
Retrieves, but does not remove, the first Action from this actions list.
getMessage() - Method in exception eu.ciechanowiec.conditional.MismatchedReturnTypeException

I

isExactlyOneActionInList() - Method in class eu.ciechanowiec.conditional.ActionsList
Informs, whether this actions list stores exactly one action.
isFalse() - Method in class eu.ciechanowiec.conditional.Conditional
Answers whether this conditional describes a false value.
isFalseOrThrow(boolean, T) - Static method in class eu.ciechanowiec.conditional.Conditional
Assures that the passed boolean value is false.
isTrue() - Method in class eu.ciechanowiec.conditional.Conditional
Answers whether this conditional describes a true value.
isTrueOrThrow(boolean, T) - Static method in class eu.ciechanowiec.conditional.Conditional
Assures that the passed boolean value is true.

M

MismatchedReturnTypeException - Exception in eu.ciechanowiec.conditional
Unchecked exception that indicates mismatch between an actual return type and a demanded return type.
MismatchedReturnTypeException(String, String) - Constructor for exception eu.ciechanowiec.conditional.MismatchedReturnTypeException
Constructs an instance of a MismatchedReturnTypeException with a template message.

O

onFalse(Action<T>) - Method in class eu.ciechanowiec.conditional.Conditional
Submits an action to this conditional and bounds it to a false value.
onFalse(Runnable) - Method in class eu.ciechanowiec.conditional.Conditional
Submits an action to this conditional and bounds it to a false value.
onFalse(Callable<T>) - Method in class eu.ciechanowiec.conditional.Conditional
Submits an action to this conditional and bounds it to a false value.
onFalseExecute(boolean, Runnable) - Static method in class eu.ciechanowiec.conditional.Conditional
Executes the submitted action if the passed boolean value is false.
onFalseExecute(boolean, Runnable, Class<X>) - Static method in class eu.ciechanowiec.conditional.Conditional
Executes the submitted action if the passed boolean value is false.
onFalseThrow(T) - Method in class eu.ciechanowiec.conditional.Conditional
Submits an action to this conditional that throws the passed Exception.
onTrue(Action<T>) - Method in class eu.ciechanowiec.conditional.Conditional
Submits an action to this conditional and bounds it to a true value.
onTrue(Runnable) - Method in class eu.ciechanowiec.conditional.Conditional
Submits an action to this conditional and bounds it to a true value.
onTrue(Callable<T>) - Method in class eu.ciechanowiec.conditional.Conditional
Submits an action to this conditional and bounds it to a true value.
onTrueExecute(boolean, Runnable) - Static method in class eu.ciechanowiec.conditional.Conditional
Executes the submitted action if the passed boolean value is true.
onTrueExecute(boolean, Runnable, Class<X>) - Static method in class eu.ciechanowiec.conditional.Conditional
Executes the submitted action if the passed boolean value is true.
onTrueThrow(T) - Method in class eu.ciechanowiec.conditional.Conditional
Submits an action to this conditional that throws the passed Exception.

R

run() - Method in interface eu.ciechanowiec.conditional.Runnable
Takes any command and runs it in a void manner, without returning a result value.
Runnable - Interface in eu.ciechanowiec.conditional
Functional interface that takes any command and runs it in a void manner, without returning a result.

T

throwIfActive(T) - Method in interface eu.ciechanowiec.conditional.ExceptionThrower
Throws the passed Exception if this exception thrower is of active type.
throwIfActive(T) - Method in class eu.ciechanowiec.conditional.ExceptionThrowerActive
Throws the passed Exception if this exception thrower is of active type.
throwIfActive(T) - Method in class eu.ciechanowiec.conditional.ExceptionThrowerVoid
Throws the passed Exception if this exception thrower is of active type.

U

UndeterminedReturnValueException - Exception in eu.ciechanowiec.conditional
Unchecked exception that indicates that not exactly one action was submitted to a given Conditional and was bound to the value described by that Conditional.
UndeterminedReturnValueException(String) - Constructor for exception eu.ciechanowiec.conditional.UndeterminedReturnValueException
Constructs an instance of an UndeterminedReturnValueException.
A C D E G I M O R T U 
All Classes All Packages