Package 

Class HCReaderKt

  • All Implemented Interfaces:

    
    public final class HCReaderKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Regex getDEFAULT_HASHCODE_INPUT_DELIMITER() The most likely delimiter to use in HashCode input files.
      final static <P extends Any> P withHCReader(String input, Regex tokenDelimiter, Function1<HCReader, P> readProblem) Executes the given readProblem function on a new HCReader, reading the given input text.
      final static <P extends Any> P withHCReader(Path path, Regex tokenDelimiter, Function1<HCReader, P> readProblem) Executes the given readProblem function on a new HCReader, reading the file at the given path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • withHCReader

         final static <P extends Any> P withHCReader(String input, Regex tokenDelimiter, Function1<HCReader, P> readProblem)

        Executes the given readProblem function on a new HCReader, reading the given input text. The reader is closed whether an exception is thrown or not.

      • withHCReader

         final static <P extends Any> P withHCReader(Path path, Regex tokenDelimiter, Function1<HCReader, P> readProblem)

        Executes the given readProblem function on a new HCReader, reading the file at the given path. The reader is closed whether an exception is thrown or not.