public class PrimitiveValueImpl extends Object implements PrimitiveValue
Constructor and Description |
---|
PrimitiveValueImpl(float aValue) |
PrimitiveValueImpl(int aValue) |
PrimitiveValueImpl(String aValue) |
Modifier and Type | Method and Description |
---|---|
Object |
get()
Gets the feature value as a Java object.
|
float |
toFloat()
Gets this value as a float.
|
int |
toInt()
Gets this value as an integer.
|
String |
toString()
Gets this value as a string.
|
public PrimitiveValueImpl(String aValue)
public PrimitiveValueImpl(int aValue)
public PrimitiveValueImpl(float aValue)
public String toString()
PrimitiveValue
toString
in interface PrimitiveValue
toString
in class Object
public int toInt()
PrimitiveValue
toInt
in interface PrimitiveValue
public float toFloat()
PrimitiveValue
toFloat
in interface PrimitiveValue
public Object get()
FeatureValue
get
in interface FeatureValue
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.