Package systems.dmx.core.model
Class SimpleValue
- java.lang.Object
-
- systems.dmx.core.model.SimpleValue
-
public class SimpleValue extends Object
A wrapper for the topic/assoc value (atomic, non-null). Supported value types are string, int, long, double, boolean.
-
-
Constructor Summary
Constructors Constructor Description SimpleValue(boolean value)SimpleValue(double value)SimpleValue(int value)SimpleValue(long value)SimpleValue(Object value)SimpleValue(String value)Called by JAX-RS container to create a SimpleValue from a @PathParam or @QueryParam
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue()doubledoubleValue()booleanequals(Object o)inthashCode()intintValue()longlongValue()StringtoString()SimpleValuetrim()Trims this value in-place, provided it is of type String.Objectvalue()
-
-
-
Constructor Detail
-
SimpleValue
public SimpleValue(String value)
Called by JAX-RS container to create a SimpleValue from a @PathParam or @QueryParam
-
SimpleValue
public SimpleValue(int value)
-
SimpleValue
public SimpleValue(long value)
-
SimpleValue
public SimpleValue(double value)
-
SimpleValue
public SimpleValue(boolean value)
-
SimpleValue
public SimpleValue(Object value)
-
-
Method Detail
-
intValue
public int intValue()
-
longValue
public long longValue()
-
doubleValue
public double doubleValue()
-
booleanValue
public boolean booleanValue()
-
value
public Object value()
-
trim
public SimpleValue trim()
Trims this value in-place, provided it is of type String. Does nothing otherwise.- Returns:
- this object
-
-