Package com.singularsys.jep.misc.dictionary

# Class Values

java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.UnaryFunction
com.singularsys.jep.misc.dictionary.Values

All Implemented Interfaces:
  `PostfixMathCommandI`, `Serializable`

public class Values extends UnaryFunction
Return the values of a map a nested list of key-value pairs. Evaluating

    map = {'x':2, 'y':3};
    values(map);

gives `[2.0, 3.0]`, order is not guaranteed. If no value is associate with a key then no value is added. returns a `Vector<Object>`.

Since:
  Jep 4.1
See Also:
  - Serialized Form

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class com.singularsys.jep.functions.UnaryFunction

  `UnaryFunction.FunctionWithException<T>`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final Object`
  `nullValue`

  ### Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `curNumberOfParameters, description, name, NaN, numberOfParameters`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Values(Object nullValue)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `eval(Object l)`
  Evaluate the function
  `protected Object`
  `eval(List<?> list)`
  `protected Object`
  `eval(Map<Object,Object> map)`

  ### Methods inherited from class com.singularsys.jep.functions.UnaryFunction

  `instanceOf, instanceOf, instanceOf, instanceOf, run`

  ### Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, asType, checkNumberOfParameters, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, setCurNumberOfParameters, setDescription, setName, toString, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### nullValue

    public final Object nullValue

- ## Constructor Details

  - ### Values

    public Values(Object nullValue)
    Constructor
    Parameters:
      `nullValue` - , value for a key has no value.

- ## Method Details

  - ### eval

    public Object eval(Object l) throws EvaluationException
    Description copied from class: `UnaryFunction`
    Evaluate the function
    Specified by:
      `eval` in class `UnaryFunction`
    Parameters:
      `l` - the single argument passed in
    Returns:
      the result of the function
    Throws:
      `EvaluationException` - on error

  - ### eval

    protected Object eval(Map<Object,Object> map) throws EvaluationException
    Throws:
      `EvaluationException`

  - ### eval

    protected Object eval(List<?> list) throws EvaluationException
    Throws:
      `EvaluationException`