public class FloatListComponent extends AbstractMessageComponent
Constructor and Description |
---|
FloatListComponent(java.lang.String name)
Construct an FloatListComponent with no data.
|
FloatListComponent(java.lang.String name,
java.util.List<java.lang.Float> data)
Construct an FloatListComponent with a list of floats.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Float> |
getValues()
Get the list of Floats in this component.
|
void |
read(java.io.InputStream in)
Read this component from a stream.
|
void |
setValues(float... newData)
Set the list of values in this component.
|
void |
setValues(java.util.List<java.lang.Float> newData)
Set the list of values in this component.
|
java.lang.String |
toString() |
void |
write(java.io.OutputStream out)
Write this component to a stream.
|
getName
public FloatListComponent(java.lang.String name)
name
- The name of the component.public FloatListComponent(java.lang.String name, java.util.List<java.lang.Float> data)
name
- The name of the component.data
- The data.public java.util.List<java.lang.Float> getValues()
public void setValues(java.util.List<java.lang.Float> newData)
newData
- The new set of values.public void setValues(float... newData)
newData
- The new set of values.public void write(java.io.OutputStream out) throws java.io.IOException
MessageComponent
out
- The stream to write to.java.io.IOException
- If the write fails.public void read(java.io.InputStream in) throws java.io.IOException
MessageComponent
in
- The stream to read from.java.io.IOException
- If the read fails.public java.lang.String toString()
toString
in class java.lang.Object