| java.lang.Object sun.tools.jstat.Operator
Operator | abstract public class Operator (Code) | | A typesafe enumeration for describing mathematical operators.
author: Brian Doherty version: 1.9, 05/09/07 since: 1.5 |
Method Summary | |
abstract protected double | eval(double x, double y) | protected static Set | keySet() Returns an enumeration of the keys for this enumerated type
Parameters: s - an string to match against Operator objects. | public static Operator | toOperator(String s) Maps a string to its corresponding Operator object.
Parameters: s - an string to match against Operator objects. | public String | toString() Returns the string representation of this Operator object. |
eval | abstract protected double eval(double x, double y)(Code) | | |
keySet | protected static Set keySet()(Code) | | Returns an enumeration of the keys for this enumerated type
Parameters: s - an string to match against Operator objects. The Operator object matching the given string. |
toOperator | public static Operator toOperator(String s)(Code) | | Maps a string to its corresponding Operator object.
Parameters: s - an string to match against Operator objects. The Operator object matching the given string. |
toString | public String toString()(Code) | | Returns the string representation of this Operator object.
the string representation of this Operator object |
|
|