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>
A
SegmentResult
instance is issued by the SerialReceiver
to
receive a Transmission
'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
ConstructorDescriptionSegmentResult
(SEGMENT aSegment) Constructs theSegmentResult
with the according arguments. -
Method Summary
Modifier and TypeMethodDescriptionprotected SEGMENT
boolean
protected void
protected void
setException
(IOException aException) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.io.IOResultAccessor
waitForResult
Methods inherited from interface org.refcodes.mixin.ResultAccessor
waitForResult
-
Constructor Details
-
SegmentResult
Constructs theSegmentResult
with the according arguments.- Parameters:
aSegment
- TheTransmission
which to manage,
-
-
Method Details
-
getResult
- 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>
-
toString
-
getSegment
-
notifyResult
protected void notifyResult() -
setException
-