Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.BiConsumer

        andThen
    • Constructor Detail

      • Weather

        public Weather()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • accept

        public void accept​(TextIO textIO,
                           RunnerData runnerData)
        Specified by:
        accept in interface java.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 class java.lang.Object