public class OrCondition extends Condition
Instances are immutable.
TRIVIAL_CONDITION
Modifier | Constructor and Description |
---|---|
protected |
OrCondition(Condition conditionA,
Condition conditionB)
Constructs from two, alternative conditions for a VisAD data object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSatisfied(DataImpl data)
Indicates if a VisAD data object satisfies this condition.
|
static OrCondition |
orCondition(Condition conditionA,
Condition conditionB)
Returns an instance of this class.
|
protected OrCondition(Condition conditionA, Condition conditionB)
conditionA
- A condition for a VisAD data object.conditionB
- A condition for a VisAD data object.public static OrCondition orCondition(Condition conditionA, Condition conditionB)
conditionA
- A condition for a VisAD data object.conditionB
- A condition for a VisAD data object.public boolean isSatisfied(DataImpl data)
isSatisfied
in class Condition
data
- A VisAD data object.true
if and only if the VisAD data
object satisfies one of the conditions used
during this instance's construction.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.