Skip navigation links
A C F I N O P T V W 

A

Action - Interface in net.kemitix.conditional
An action to perform in a clause when a Condition is met.
and(Supplier<Boolean>) - Method in interface net.kemitix.conditional.Condition
Logically AND combine the current Condition with the clause.
and(Condition) - Method in interface net.kemitix.conditional.Condition
Logically AND current Condition with the other Condition.
and(boolean) - Method in interface net.kemitix.conditional.Condition
Logically AND current Condition with the other boolean.
and(Supplier<Boolean>) - Method in interface net.kemitix.conditional.Value.ValueClause
Logically AND combine the current Value.ValueClause with clause.
andNot(Supplier<Boolean>) - Method in interface net.kemitix.conditional.Value.ValueClause

C

Condition - Interface in net.kemitix.conditional
If-then-else in a functional-style.

F

flatMap(Function<Boolean, Condition>) - Method in interface net.kemitix.conditional.Condition
Apply the function to the Condtion, resulting an another Condition.

I

isFalse() - Method in interface net.kemitix.conditional.Condition
Checks of the Condition is false or not.
isTrue() - Method in interface net.kemitix.conditional.Condition
Checks if the Condition is true or not.

N

net.kemitix.conditional - package net.kemitix.conditional
The MIT License (MIT) Copyright (c) 2017 Paul Campbell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
not() - Method in interface net.kemitix.conditional.Condition
Negates the Condtion.
not() - Method in interface net.kemitix.conditional.Value.ValueClause
Negate the Value.

O

optional() - Method in interface net.kemitix.conditional.Value.ValueClause.ValueSupplier
Returns the value in an Optional if the Value.ValueClause is true, or an empty Optional if it is false.
or(Supplier<Boolean>) - Method in interface net.kemitix.conditional.Condition
Logically OR combine the current Condition with the clause.
or(Condition) - Method in interface net.kemitix.conditional.Condition
Logically OR the current Condition with the other Condition.
or(boolean) - Method in interface net.kemitix.conditional.Condition
Logically OR the current Condition with the other boolean.
or(Supplier<Boolean>) - Method in interface net.kemitix.conditional.Value.ValueClause
Logically OR combine the current Value.ValueClause with clause.
orNot(Supplier<Boolean>) - Method in interface net.kemitix.conditional.Value.ValueClause
Logically OR combine the current Value.ValueClause with boolean opposite of the clause.
otherwise(Action) - Method in interface net.kemitix.conditional.Condition
Perform this response if the Condition is false.
otherwise(Supplier<Boolean>) - Method in interface net.kemitix.conditional.Condition
Create a new Condition for the clause as a continuation to an existing Condition.
otherwise(Supplier<T>) - Method in interface net.kemitix.conditional.Value.ValueClause.ValueSupplier
Determine the value by whether the Value.ValueClause was true or false.
otherwiseThrow(Exception) - Method in interface net.kemitix.conditional.Condition
otherwiseThrow(Supplier<Exception>) - Method in interface net.kemitix.conditional.Condition
Throw then exception if the Condition is false.

P

perform() - Method in interface net.kemitix.conditional.Action
The action to perform.

T

then(Action) - Method in interface net.kemitix.conditional.Condition
Perform this response if the Condition is true.
then(Supplier<T>) - Method in interface net.kemitix.conditional.Value.ValueClause
Create a Value.ValueClause.ValueSupplier with the Supplier should the Value.ValueClause be true.
thenThrow(Exception) - Method in interface net.kemitix.conditional.Condition
thenThrow(Supplier<Exception>) - Method in interface net.kemitix.conditional.Condition
Throw the exception supplied if the Condition is true.

V

Value - Interface in net.kemitix.conditional
A Value from an if-then-else in a functional-style.
Value.ValueClause<T> - Interface in net.kemitix.conditional
An intermediate state in determining the final Value.
Value.ValueClause.ValueSupplier<T> - Interface in net.kemitix.conditional
An intermediate result of the Value.

W

where(boolean) - Static method in interface net.kemitix.conditional.Condition
Create a new Condition for the clause.
where(boolean, Supplier<T>, Supplier<T>) - Static method in interface net.kemitix.conditional.Value
Return one of two values depending on the value of a clause.
where(Condition, Supplier<T>, Supplier<T>) - Static method in interface net.kemitix.conditional.Value
Return one of two values depending on the value of a clause.
where(boolean, Supplier<T>) - Static method in interface net.kemitix.conditional.Value
Return an Optional either containing a value, if the clause is true, or empty.
where(Condition, Supplier<T>) - Static method in interface net.kemitix.conditional.Value
Return an Optional either containing a value, if the clause is true, or empty.
where(boolean) - Static method in interface net.kemitix.conditional.Value
Create a new Value.ValueClause for the clause.
where(Condition) - Static method in interface net.kemitix.conditional.Value
Create a new Value.ValueClause for the clause.
A C F I N O P T V W 
Skip navigation links

Copyright © 2015–2019. All rights reserved.