public class FloatOptional
extends java.lang.Object
| Constructor and Description |
|---|
FloatOptional()
The value defaults to unset.
|
FloatOptional(float v)
Sets the value to the given argument.
|
FloatOptional(FloatOptional opt)
Sets the value to a shallow copy of the given optional.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Unsets this value.
|
float |
get()
Obtains the current value.
|
boolean |
isSet()
Determines whether the value is set.
|
void |
set(float v)
Sets the value to the given argument.
|
void |
set(FloatOptional opt)
If the given argument is set, this optional is set to a shallow copy of the argument,
otherwise this optional is unset.
|
public FloatOptional()
public FloatOptional(float v)
v - The initial value.public FloatOptional(FloatOptional opt)
opt - The source value.public float get()
java.lang.IllegalStateException - If the value is not set.public void set(float v)
v - The new value.public void set(FloatOptional opt)
opt - The source value.public boolean isSet()
public void clear()