visad.data.in
Class MathTypeCondition
- java.lang.Object
-
- visad.data.in.Condition
-
- visad.data.in.MathTypeCondition
-
public class MathTypeCondition extends Condition
Provides support for matching the MathType of a VisAD data object.Instances are immutable.
-
-
Field Summary
-
Fields inherited from class visad.data.in.Condition
TRIVIAL_CONDITION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisSatisfied(DataImpl data)Indicates if a VisAD data object satisfies this condition.static MathTypeConditionmathTypeCondition(MathType mathType)Returns an instance of this class.
-
-
-
Method Detail
-
mathTypeCondition
public static MathTypeCondition mathTypeCondition(MathType mathType)
Returns an instance of this class. Constructs from a VisAD math-type. VisAD data objects whose math-type equals the given one will satisfy this condition.- Parameters:
mathType- The VisAD math-type to match against VisAD data objects.- Returns:
- An instance of this class.
-
isSatisfied
public boolean isSatisfied(DataImpl data)
Indicates if a VisAD data object satisfies this condition.- Specified by:
isSatisfiedin classCondition- Parameters:
data- A VisAD data object.- Returns:
trueif and only if the math-type of the VisAD data object equals the math-type used during this instance's construction.
-
-
DMelt 3.0 © DataMelt by jWork.ORG