de.deepamehta.core.model
Class SimpleValue

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.model.SimpleValue

public class SimpleValue
extends Object

A wrapper for the topic value (atomic, non-null). Supported value types are string, int, long, double, boolean.


Field Summary
private  Logger logger
           
private  Object value
          The (auto-boxed) wrapped value.
 
Constructor Summary
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
 boolean booleanValue()
           
 double doubleValue()
           
 boolean equals(Object o)
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
 String toString()
           
 Object value()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private Object value
The (auto-boxed) wrapped value. Either String, Integer, Long, Double, or Boolean.


logger

private Logger logger
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

toString

public String toString()
Overrides:
toString in class Object

intValue

public int intValue()

longValue

public long longValue()

doubleValue

public double doubleValue()

booleanValue

public boolean booleanValue()

value

public Object value()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All Rights Reserved.