public class EmptyState extends java.lang.Object implements ComponentState
Constructor and Description |
---|
EmptyState() |
Modifier and Type | Method and Description |
---|---|
ComponentState |
duplicate()
Create a duplicate of this state which can be used for storing this
state's values.
|
boolean |
equals(ComponentState state)
Returns true if this state equals another component state.
|
void |
readBinary(java.io.DataInputStream dis)
Read this state (in binary format) from a data input stream.
|
void |
set(ComponentState state)
Sets this state by copying the value from an existing state object.
|
void |
writeBinary(java.io.DataOutputStream dos)
Writes this state (in binary format) to a data output stream.
|
public void writeBinary(java.io.DataOutputStream dos) throws java.io.IOException
writeBinary
in interface ComponentState
dos
- output stream to write model tojava.io.IOException
- if an I/O error occurredpublic void readBinary(java.io.DataInputStream dis) throws java.io.IOException
readBinary
in interface ComponentState
dis
- input stream to read model fromjava.io.IOException
- if an I/O error occurred or if the input is incompatible with the current
state configuration.public void set(ComponentState state)
set
in interface ComponentState
state
- state object to copyjava.lang.IllegalArgumentException
- if the state objects are incompatiblepublic boolean equals(ComponentState state)
ComponentState
equals
in interface ComponentState
state
- state to compare topublic ComponentState duplicate()
duplicate
in interface ComponentState