Class SingleLevelAnd
Object
SingleLevelBinary
SingleLevelAnd
- All Implemented Interfaces:
SingleLevelOutputEnabled
Outputs are enabled if they are contained in both of two
SingleLevelOutputEnabled
.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionSingleLevelAnd
(SingleLevelOutputEnabled enabled1, SingleLevelOutputEnabled enabled2) Creates using twoSingleLevelOutputEnabled
s. -
Method Summary
Modifier and TypeMethodDescriptionboolean
combine
(boolean first, boolean second) Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled
.Methods inherited from class org.anchoranalysis.io.output.enabled.single.SingleLevelBinary
isOutputEnabled
-
Constructor Details
-
SingleLevelAnd
Creates using twoSingleLevelOutputEnabled
s.- Parameters:
enabled1
- the first source of output-names that are enabledenabled2
- the second source of output-names that are enabled
-
-
Method Details
-
combine
public boolean combine(boolean first, boolean second) Description copied from class:SingleLevelBinary
Determines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled
.- Specified by:
combine
in classSingleLevelBinary
- Parameters:
first
- whetherenabled1
is enabled.second
- whetherenabled2
is enabled.- Returns:
- whether the combined output is enabled.
-