Package org.beryx.textio.demo.app
Class Weather
- java.lang.Object
-
- org.beryx.textio.demo.app.Weather
-
- All Implemented Interfaces:
java.util.function.BiConsumer<TextIO,RunnerData>
public class Weather extends java.lang.Object implements java.util.function.BiConsumer<TextIO,RunnerData>
Illustrates some features introduced in version 3 of Text-IO: line reset, bookmarking etc.
-
-
Constructor Summary
Constructors Constructor Description Weather()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(TextIO textIO, RunnerData runnerData)
static void
delay(long millis)
java.lang.String
getData()
Mocks a data retrieval operation.static void
main(java.lang.String[] args)
java.lang.String
toString()
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
accept
public void accept(TextIO textIO, RunnerData runnerData)
- Specified by:
accept
in interfacejava.util.function.BiConsumer<TextIO,RunnerData>
-
getData
public java.lang.String getData()
Mocks a data retrieval operation.- Returns:
- the info text to be displayed
-
delay
public static void delay(long millis)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-