Module org.refcodes.serial
Package org.refcodes.serial
Class AbstractTransmissionComposite<CHILD extends Transmission>
java.lang.Object
org.refcodes.serial.AbstractTransmissionComposite<CHILD>
- Type Parameters:
CHILD
- The type of the child elements to be contained in this instance.
- All Implemented Interfaces:
Serializable
,Iterable<CHILD>
,org.refcodes.mixin.ChildrenAccessor<CHILD[]>
,org.refcodes.mixin.LengthAccessor
,org.refcodes.mixin.Schemable
,Transmission
,TransmissionComposite<CHILD>
- Direct Known Subclasses:
SegmentComposite
public abstract class AbstractTransmissionComposite<CHILD extends Transmission>
extends Object
implements Transmission, TransmissionComposite<CHILD>, Iterable<CHILD>
A
AbstractTransmissionComposite
is a Transmission
consisting
of Transmission
elements with each element.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ChildrenAccessor
org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<T extends Object,
B extends org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<T, B>>, org.refcodes.mixin.ChildrenAccessor.ChildrenMutator<T extends Object>, org.refcodes.mixin.ChildrenAccessor.ChildrenProperty<T extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.LengthAccessor
org.refcodes.mixin.LengthAccessor.LengthBuilder<B extends org.refcodes.mixin.LengthAccessor.LengthBuilder<B>>, org.refcodes.mixin.LengthAccessor.LengthMutator, org.refcodes.mixin.LengthAccessor.LengthProperty
Nested classes/interfaces inherited from interface org.refcodes.serial.Transmission
Transmission.TransmissionMixin
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructs an emptyAbstractTransmissionComposite
for sub-classes to use having the responsibility to set the children by themselves.AbstractTransmissionComposite
(CHILD... aSegments) Constructs aAbstractTransmissionComposite
containing the providedSegment
elements. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.refcodes.serial.Transmission
transmitTo, transmitTo, transmitTo
Methods inherited from interface org.refcodes.serial.TransmissionComposite
getLength, toSchema, toSequence, toSimpleTypeMap
-
Field Details
-
_children
-
-
Constructor Details
-
AbstractTransmissionComposite
protected AbstractTransmissionComposite()Constructs an emptyAbstractTransmissionComposite
for sub-classes to use having the responsibility to set the children by themselves. -
AbstractTransmissionComposite
Constructs aAbstractTransmissionComposite
containing the providedSegment
elements.- Parameters:
aSegments
- TheSegment
elements being contained in this instance.
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceIterable<CHILD extends Transmission>
-
getChildren
- Specified by:
getChildren
in interfaceorg.refcodes.mixin.ChildrenAccessor<CHILD extends Transmission>
-
toString
-