Package org.beryx.textio
Class ReadInterruptionStrategy<T extends ReadInterruptionStrategy<T>>
- java.lang.Object
-
- org.beryx.textio.ReadInterruptionStrategy<T>
-
- Direct Known Subclasses:
ReadHandlerData
,ReadInterruptionData
public class ReadInterruptionStrategy<T extends ReadInterruptionStrategy<T>> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReadInterruptionStrategy.Action
-
Constructor Summary
Constructors Constructor Description ReadInterruptionStrategy(ReadInterruptionStrategy.Action action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadInterruptionStrategy.Action
getAction()
java.lang.String
getPayload()
boolean
isRedrawRequired()
java.lang.String
toString()
T
withPayload(java.lang.String payload)
T
withRedrawRequired(boolean redrawRequired)
-
-
-
Constructor Detail
-
ReadInterruptionStrategy
public ReadInterruptionStrategy(ReadInterruptionStrategy.Action action)
-
-
Method Detail
-
getAction
public ReadInterruptionStrategy.Action getAction()
-
withRedrawRequired
public T withRedrawRequired(boolean redrawRequired)
-
isRedrawRequired
public boolean isRedrawRequired()
-
withPayload
public T withPayload(java.lang.String payload)
-
getPayload
public java.lang.String getPayload()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-