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 TypeMethodDescriptionbooleanaccept(BinaryVoxels<UnsignedByteBuffer> voxels) Whether a particularvoxelsfulfills the condition or not.voidadd(AcceptIterationPredicate predicate) Adds an item to the list of predicates.
-
Constructor Details
-
AcceptIterationList
public AcceptIterationList()
-
-
Method Details
-
accept
Description copied from interface:AcceptIterationPredicateWhether a particularvoxelsfulfills the condition or not.- Specified by:
acceptin 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.
-