Module org.refcodes.serial
Package org.refcodes.serial
Class FixedSegmentArraySection<ARRAY extends Segment>
java.lang.Object
org.refcodes.serial.AbstractArrayTransmission<ARRAY>
org.refcodes.serial.FixedSegmentArraySection<ARRAY>
- Type Parameters:
ARRAY
- The type of the array elements to be contained in this instance.
- All Implemented Interfaces:
Serializable
,org.refcodes.mixin.AliasAccessor
,org.refcodes.mixin.ArrayAccessor<ARRAY[]>
,org.refcodes.mixin.ArrayAccessor.ArrayBuilder<ARRAY[],
,ArrayTransmission<ARRAY>> org.refcodes.mixin.ArrayAccessor.ArrayMutator<ARRAY[]>
,org.refcodes.mixin.ArrayAccessor.ArrayProperty<ARRAY[]>
,org.refcodes.mixin.LengthAccessor
,org.refcodes.mixin.Schemable<SerialSchema>
,ArraySection<ARRAY>
,ArrayTransmission<ARRAY>
,Section
,Section.SectionMixin
,Transmission
,Transmission.TransmissionMixin
public class FixedSegmentArraySection<ARRAY extends Segment>
extends AbstractArrayTransmission<ARRAY>
implements ArraySection<ARRAY>
A
FixedSegmentArraySection
is a Section
consisting of
Segment
elements with each element of the same (uniform) length (in
contrast to the SegmentArraySection
). When using the
FixedSegmentArraySection
, it is to be taken care of the uniform
Segment
elements' lengths.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.ArrayAccessor
org.refcodes.mixin.ArrayAccessor.ArrayBuilder<T extends Object,
B extends org.refcodes.mixin.ArrayAccessor.ArrayBuilder<T, B>>, org.refcodes.mixin.ArrayAccessor.ArrayMutator<T extends Object>, org.refcodes.mixin.ArrayAccessor.ArrayProperty<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.Section
Section.SectionMixin
Nested classes/interfaces inherited from interface org.refcodes.serial.Transmission
Transmission.TransmissionMixin
-
Field Summary
Fields inherited from class org.refcodes.serial.AbstractArrayTransmission
_alias, _array, _sequenceableFactory
-
Constructor Summary
ConstructorDescriptionFixedSegmentArraySection
(ARRAY... aSegments) FixedSegmentArraySection
(Class<ARRAY> aSegmentClass) FixedSegmentArraySection
(String aAlias, ARRAY... aSegments) FixedSegmentArraySection
(String aAlias, Class<ARRAY> aSegmentClass) FixedSegmentArraySection
(String aAlias, Collection<ARRAY> aSegments) FixedSegmentArraySection
(String aAlias, org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) FixedSegmentArraySection
(String aAlias, org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegments) FixedSegmentArraySection
(String aAlias, org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, Collection<ARRAY> aSegments) FixedSegmentArraySection
(Collection<ARRAY> aSegments) FixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory) FixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegments) FixedSegmentArraySection
(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, Collection<ARRAY> aSegments) -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromTransmission
(Sequence aSequence, int aOffset, int aLength) (Re-)initializes this instance with the the givenSequence
data.Methods inherited from class org.refcodes.serial.AbstractArrayTransmission
getAlias, getArray, getLength, setArray, toSchema, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.AliasAccessor
getAlias
Methods inherited from interface org.refcodes.mixin.ArrayAccessor
getArray
Methods inherited from interface org.refcodes.mixin.ArrayAccessor.ArrayMutator
setArray
Methods inherited from interface org.refcodes.mixin.ArrayAccessor.ArrayProperty
letArray
Methods inherited from interface org.refcodes.serial.ArrayTransmission
getLength, toSchema, toSequence, toSimpleTypeMap
Methods inherited from interface org.refcodes.serial.Section
fromTransmission, fromTransmission, fromTransmission, receiveFrom, receiveFrom
Methods inherited from interface org.refcodes.serial.Section.SectionMixin
receiveFrom
Methods inherited from interface org.refcodes.serial.Transmission
transmitTo, transmitTo
Methods inherited from interface org.refcodes.serial.Transmission.TransmissionMixin
transmitTo
-
Constructor Details
-
FixedSegmentArraySection
-
FixedSegmentArraySection
-
FixedSegmentArraySection
-
FixedSegmentArraySection
-
FixedSegmentArraySection
-
FixedSegmentArraySection
-
FixedSegmentArraySection
public FixedSegmentArraySection(String aAlias, org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, Collection<ARRAY> aSegments) -
FixedSegmentArraySection
@SafeVarargs public FixedSegmentArraySection(String aAlias, org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegments) -
FixedSegmentArraySection
-
FixedSegmentArraySection
public FixedSegmentArraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, Collection<ARRAY> aSegments) -
FixedSegmentArraySection
@SafeVarargs public FixedSegmentArraySection(org.refcodes.factory.TypeFactory<ARRAY> aSegmentFactory, ARRAY... aSegments) -
FixedSegmentArraySection
-
-
Method Details
-
withArray
- Specified by:
withArray
in interfaceorg.refcodes.mixin.ArrayAccessor.ArrayBuilder<ARRAY extends Segment[],
ArrayTransmission<ARRAY extends Segment>> - Overrides:
withArray
in classAbstractArrayTransmission<ARRAY extends Segment>
-
fromTransmission
public void fromTransmission(Sequence aSequence, int aOffset, int aLength) throws TransmissionException (Re-)initializes this instance with the the givenSequence
data.- Specified by:
fromTransmission
in interfaceSection
- Parameters:
aSequence
- TheSequence
data from which to (re-)initialize this instance.aOffset
- The offset where to start processing the providedSequence
.aLength
- The length of data assigned by theSequence
.- Throws:
TransmissionException
- thrown in case a givenSequence
cannot be processed.
-