- java.lang.Object
-
- org.refcodes.serial.SegmentResult<SEGMENT>
-
- Type Parameters:
SEGMENT
- TheTransmission
instance to be (re-)initialized asynchronously.
- All Implemented Interfaces:
org.refcodes.io.IOResultAccessor<SEGMENT,IOException>
,org.refcodes.mixin.ResultAccessor<SEGMENT,IOException>
public class SegmentResult<SEGMENT extends Segment> extends Object implements org.refcodes.io.IOResultAccessor<SEGMENT,IOException>
ASegmentResult
instance is issued by theSerialReceiver
to receive aTransmission
's data asynchronously.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ResultAccessor
org.refcodes.mixin.ResultAccessor.ResultBuilder<RES extends Object,B extends org.refcodes.mixin.ResultAccessor.ResultBuilder<RES,B>>, org.refcodes.mixin.ResultAccessor.ResultMutator<RES extends Object>, org.refcodes.mixin.ResultAccessor.ResultProperty<RES extends Object,EXC extends Exception>
-
-
Constructor Summary
Constructors Constructor Description SegmentResult(SEGMENT aSegment)
Constructs theSegmentResult
with the according arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SEGMENT
getResult()
protected SEGMENT
getSegment()
boolean
hasResult()
protected void
notifyResult()
protected void
setException(IOException aException)
String
toString()
-
-
-
Constructor Detail
-
SegmentResult
public SegmentResult(SEGMENT aSegment)
Constructs theSegmentResult
with the according arguments.- Parameters:
aSegment
- TheTransmission
which to manage,
-
-
Method Detail
-
getResult
public SEGMENT getResult() throws IOException
- Specified by:
getResult
in interfaceorg.refcodes.mixin.ResultAccessor<SEGMENT extends Segment,IOException>
- Throws:
IOException
-
hasResult
public boolean hasResult()
- Specified by:
hasResult
in interfaceorg.refcodes.mixin.ResultAccessor<SEGMENT extends Segment,IOException>
-
getSegment
protected SEGMENT getSegment()
-
notifyResult
protected void notifyResult()
-
setException
protected void setException(IOException aException)
-
-