Class AcceptIterationList
Object
AcceptIterationList
- All Implemented Interfaces:
AcceptIterationPredicate
The condition is accepted if any one of a list of
AcceptIterationPredicate
fulfills the
condition.
This is like a logical or operation.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(BinaryVoxels<UnsignedByteBuffer> voxels) Whether a particularvoxels
fulfills the condition or not.void
add
(AcceptIterationPredicate predicate) Adds an item to the list of predicates.
-
Constructor Details
-
AcceptIterationList
public AcceptIterationList()
-
-
Method Details
-
accept
Description copied from interface:AcceptIterationPredicate
Whether a particularvoxels
fulfills the condition or not.- Specified by:
accept
in interfaceAcceptIterationPredicate
- Parameters:
voxels
- the voxels to test.- Returns:
- true iff the condition is fulfilled.
- Throws:
OperationFailedException
- if the predicate cannot be successfully checked.
-
add
Adds an item to the list of predicates.- Parameters:
predicate
- the predicate to add.
-