step.encoding
Class IrregularValueEvent
java.lang.Object
|
+--step.encoding.EncoderEvent
|
+--step.encoding.IrregularValueEvent
- All Implemented Interfaces:
- MetaEvent, Serializable, StepObject, StepRecord
- public class IrregularValueEvent
- extends EncoderEvent
An event that signals that the next value in the data stream is irregular.
The definition of an "irregular" value is specific to the particular encoding
strategy.
- See Also:
RegularValueStrategy
,
Serialized Form
DEFINITION
public static final RecordDef DEFINITION
IrregularValueEvent
public IrregularValueEvent(StepString target)
applyToEncoder
public void applyToEncoder(Encoder encoder)
- Signal the target encoder that the next value is irregular.
- Specified by:
applyToEncoder
in class EncoderEvent
- Throws:
ClassCastException
- if the target encoder is not a
RegularValueStrategy
.
equals
public boolean equals(Object o)
- Compare to events for equality.
- Specified by:
equals
in interface StepObject
- Overrides:
equals
in class Object
- Throws:
ClassCastException
- if the object is not an IrregularValueEvent.
NullPointerException
- if the object is null
.
hashCode
public int hashCode()
- Description copied from interface:
StepObject
- Get a hash code for this object.
NOTE: All STEP objects must be hashable to support the
identifier encoding strategy.
- Specified by:
hashCode
in interface StepObject
- Overrides:
hashCode
in class Object
fieldIterator
public FieldIterator fieldIterator()
- Description copied from interface:
StepRecord
- Get an iterator for serial access to this record's fields.
NOTE: The order in which fields are accessed by the iterator should be
compatible with the factory associated with this record.
- See Also:
RecordFactory