Class ConstantValueInputImpl<T>

  • All Implemented Interfaces:
    ConstantValueInput<T>, com.github.akurilov.commons.io.Input<T>, java.lang.AutoCloseable, java.util.function.Supplier<T>

    public final class ConstantValueInputImpl<T>
    extends java.lang.Object
    implements ConstantValueInput<T>
    • Field Summary

      • Fields inherited from interface com.github.akurilov.commons.io.Input

        DELIMITER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      T get()  
      int get​(java.util.List<T> buffer, int limit)  
      void reset()  
      long skip​(long count)  
      • Methods inherited from class java.lang.Object

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

      • ConstantValueInputImpl

        public ConstantValueInputImpl​(T val)
    • Method Detail

      • get

        public final T get()
        Specified by:
        get in interface com.github.akurilov.commons.io.Input<T>
        Specified by:
        get in interface java.util.function.Supplier<T>
      • get

        public int get​(java.util.List<T> buffer,
                       int limit)
        Specified by:
        get in interface com.github.akurilov.commons.io.Input<T>
      • skip

        public final long skip​(long count)
        Specified by:
        skip in interface com.github.akurilov.commons.io.Input<T>
      • reset

        public final void reset()
        Specified by:
        reset in interface com.github.akurilov.commons.io.Input<T>
      • close

        public final void close()
        Specified by:
        close in interface java.lang.AutoCloseable