A C D E G I M O R T U
All Classes All Packages
All Classes All Packages
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 (seeexecute(...)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
ActionsListthat storesActions and provides basic API pertaining to the stored elements. - actionsOnFalse() - Method in class eu.ciechanowiec.conditional.Conditional
-
Retrieves by reference an
ActionsListthat stores all actions submitted to this conditional and bound to afalsevalue. - actionsOnTrue() - Method in class eu.ciechanowiec.conditional.Conditional
-
Retrieves by reference an
ActionsListthat stores all actions submitted to this conditional and bound to atruevalue. - add(Action<T>) - Method in class eu.ciechanowiec.conditional.ActionsList
-
Adds the passed
Actionto 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
- Conditional - Class in eu.ciechanowiec.conditional
-
Basic entity of Conditional library, that replaces
if-elsestatements and ternary operators with a featured fluent interface.
D
- describedValue() - Method in class eu.ciechanowiec.conditional.Conditional
-
Returns the value described by this conditional (
trueorfalse). - discardActionsOnFalse() - Method in class eu.ciechanowiec.conditional.Conditional
-
Removes all actions submitted to this conditional and bound to a
falsevalue. - discardActionsOnTrue() - Method in class eu.ciechanowiec.conditional.Conditional
-
Removes all actions submitted to this conditional and bound to a
truevalue. - 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
Exceptionwhen 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
Actionfrom 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
falsevalue. - 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
truevalue. - 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
MismatchedReturnTypeExceptionwith 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
falsevalue. - onFalse(Runnable) - Method in class eu.ciechanowiec.conditional.Conditional
-
Submits an action to this conditional and bounds it to a
falsevalue. - onFalse(Callable<T>) - Method in class eu.ciechanowiec.conditional.Conditional
-
Submits an action to this conditional and bounds it to a
falsevalue. - 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
truevalue. - onTrue(Runnable) - Method in class eu.ciechanowiec.conditional.Conditional
-
Submits an action to this conditional and bounds it to a
truevalue. - onTrue(Callable<T>) - Method in class eu.ciechanowiec.conditional.Conditional
-
Submits an action to this conditional and bounds it to a
truevalue. - 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
Exceptionif this exception thrower is of active type. - throwIfActive(T) - Method in class eu.ciechanowiec.conditional.ExceptionThrowerActive
-
Throws the passed
Exceptionif this exception thrower is of active type. - throwIfActive(T) - Method in class eu.ciechanowiec.conditional.ExceptionThrowerVoid
-
Throws the passed
Exceptionif 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
Conditionaland was bound to the value described by thatConditional. - UndeterminedReturnValueException(String) - Constructor for exception eu.ciechanowiec.conditional.UndeterminedReturnValueException
-
Constructs an instance of an
UndeterminedReturnValueException.
All Classes All Packages