org.gcube.data.trees.patterns
Class NumPattern
java.lang.Object
org.gcube.data.trees.patterns.AbstractPattern
org.gcube.data.trees.patterns.LeafPattern<Double,Constraint<? super Double>>
org.gcube.data.trees.patterns.NumPattern
- All Implemented Interfaces:
- Serializable, Pattern
public class NumPattern
- extends LeafPattern<Double,Constraint<? super Double>>
A Pattern that matches the value of a Leaf against a Double Constraint.
- Author:
- Fabio Simeoni
- See Also:
- Serialized Form
NumPattern
public NumPattern(Constraint<? super Double> constraint)
- Creates an instance with a given constraint.
- Parameters:
constraint - the constraint
valueOf
protected Double valueOf(String s)
- Returns the typed equivalent of a leaf's value.
- Specified by:
valueOf in class LeafPattern<Double,Constraint<? super Double>>
- Parameters:
s - the value
- Returns:
- the typed value
name
public String name()
- Description copied from class:
LeafPattern
- Returns the name of the pattern.
- Specified by:
name in class LeafPattern<Double,Constraint<? super Double>>
- Returns:
- the name
Copyright © 2013. All Rights Reserved.