Class InputReader.ParseResult<T>

  • Type Parameters:
    T -
    Enclosing class:
    InputReader<T,​B extends InputReader<T,​B>>

    public static class InputReader.ParseResult<T>
    extends java.lang.Object
    A holder object returned by the InputReader.parse(String) method, containing the parsed value and/or the error messages.
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseResult​(T value)  
      ParseResult​(T value, java.lang.String... errorMessages)  
      ParseResult​(T value, java.util.List<java.lang.String> errorMessages)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getErrorMessages()  
      T getValue()  
      • Methods inherited from class java.lang.Object

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

      • ParseResult

        public ParseResult​(T value)
      • ParseResult

        public ParseResult​(T value,
                           java.util.List<java.lang.String> errorMessages)
      • ParseResult

        public ParseResult​(T value,
                           java.lang.String... errorMessages)
    • Method Detail

      • getValue

        public T getValue()
      • getErrorMessages

        public java.util.List<java.lang.String> getErrorMessages()