org.nfunk.jep
Class FunctionTable
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable
org.nfunk.jep.FunctionTable
- All Implemented Interfaces:
- Serializable, Cloneable, Map
public class FunctionTable
- extends Hashtable
- See Also:
- Serialized Form
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, toString, values |
FunctionTable
public FunctionTable()
put
public Object put(String s,
PostfixMathCommandI pfmc)
- adds the PostfixMathCommandI for the function with name s.
RJM addition Oct 03
put
public Object put(Object o,
Object p)
- overrides the standard hashtable method.
If the arguments are of the wrong type then throws
ClassCastException
RJM addition Oct 03
TODO is Hashtable always index by Strings?
- Specified by:
put in interface Map- Overrides:
put in class Hashtable
get
public PostfixMathCommandI get(String s)
- returns the PostfixMathCommandI for function with name s.
RJM addition Oct 03
get
public Object get(Object o)
- overrides the standard hashtable method.
If the argument is of the wrong type (i.e. not a String)
then throws ClassCastException
RJM addition Oct 03
- Specified by:
get in interface Map- Overrides:
get in class Hashtable
Copyright © 2014. All rights reserved.