public class AndCondition extends Condition
Instances are immutable.
TRIVIAL_CONDITION
Modifier | Constructor and Description |
---|---|
protected |
AndCondition(Condition conditionA,
Condition conditionB)
Constructs from two, necessary conditions for a VisAD data object.
|
Modifier and Type | Method and Description |
---|---|
static AndCondition |
andCondition(Condition conditionA,
Condition conditionB)
Returns an instance of this class.
|
boolean |
isSatisfied(DataImpl data)
Indicates if a VisAD data object satisfies this condition.
|
protected AndCondition(Condition conditionA, Condition conditionB)
conditionA
- A condition for a VisAD data object.conditionB
- A condition for a VisAD data object.public static AndCondition andCondition(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 both the conditions used
during this instance's construction.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.