Class SingleLevelOr
Object
org.anchoranalysis.io.output.enabled.single.SingleLevelBinary
org.anchoranalysis.io.output.enabled.single.SingleLevelOr
- All Implemented Interfaces:
SingleLevelOutputEnabled
public class SingleLevelOr extends SingleLevelBinary
Outputs are enabled if they are contained in either of two
SingleLevelOutputEnabled.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description SingleLevelOr(SingleLevelOutputEnabled enabled1, SingleLevelOutputEnabled enabled2)Creates using twoSingleLevelOutputEnableds. -
Method Summary
Modifier and Type Method Description booleancombine(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
-
SingleLevelOr
Creates using twoSingleLevelOutputEnableds.- 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:SingleLevelBinaryDetermines whether an output is enabled via a combination of the twoMultiLevelOutputEnabled.- Specified by:
combinein classSingleLevelBinary- Parameters:
first- whetherenabled1is enabled.second- whetherenabled2is enabled.- Returns:
- whether the combined output is enabled.
-