public class SimpleValueSupport extends AbstractMetaValue implements SimpleValue
Constructor and Description |
---|
SimpleValueSupport(SimpleMetaType metaType,
Serializable value)
Create a new SimpleValueSupport.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SimpleValue sv) |
boolean |
equals(Object obj) |
SimpleMetaType |
getMetaType()
Get the metatype for this value
|
Serializable |
getValue()
Get the value.
|
int |
hashCode() |
void |
setValue(Serializable value)
Set the value.
|
String |
toString() |
static SimpleValue |
wrap(boolean value) |
static SimpleValue |
wrap(byte value) |
static SimpleValue |
wrap(char value) |
static SimpleValue |
wrap(double value) |
static SimpleValue |
wrap(float value) |
static SimpleValue |
wrap(int value) |
static SimpleValue |
wrap(long value) |
static SimpleValue |
wrap(Serializable object)
Wrap a simple object in simple value
|
static SimpleValue |
wrap(short value) |
clone
public SimpleValueSupport(SimpleMetaType metaType, Serializable value)
metaType
- the simple meta typevalue
- the valueIllegalArgumentException
- for a null simpleMetaTypepublic static SimpleValue wrap(Serializable object)
object
- the simple objectpublic static SimpleValue wrap(boolean value)
public static SimpleValue wrap(byte value)
public static SimpleValue wrap(char value)
public static SimpleValue wrap(short value)
public static SimpleValue wrap(int value)
public static SimpleValue wrap(long value)
public static SimpleValue wrap(float value)
public static SimpleValue wrap(double value)
public SimpleMetaType getMetaType()
MetaValue
getMetaType
in interface MetaValue
getMetaType
in interface SimpleValue
public Serializable getValue()
getValue
in interface SimpleValue
public void setValue(Serializable value)
value
- the value.public int compareTo(SimpleValue sv)
compareTo
in interface Comparable<SimpleValue>
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.