public class NumPattern extends LeafPattern<Double,Constraint<? super Double>>
constraint| Constructor and Description |
|---|
NumPattern(Constraint<? super Double> constraint)
Creates an instance with a given constraint.
|
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Returns the name of the pattern.
|
protected Double |
valueOf(String s)
Returns the typed equivalent of a leaf's value.
|
constraint, equals, hashCode, matches, prune, toStringidPattern, setIdPatternpublic NumPattern(Constraint<? super Double> constraint)
constraint - the constraintprotected Double valueOf(String s)
valueOf in class LeafPattern<Double,Constraint<? super Double>>s - the valuepublic String name()
LeafPatternname in class LeafPattern<Double,Constraint<? super Double>>Copyright © 2018. All Rights Reserved.