Class NewItemInput<I extends Item>

  • All Implemented Interfaces:
    com.github.akurilov.commons.io.Input<I>, java.lang.AutoCloseable, java.util.function.Supplier<I>
    Direct Known Subclasses:
    NewDataItemInput

    public class NewItemInput<I extends Item>
    extends java.lang.Object
    implements com.github.akurilov.commons.io.Input<I>
    Created by andrey on 01.12.16.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      I get()  
      int get​(java.util.List<I> buffer, int maxCount)  
      void reset()  
      long skip​(long itemsCount)
      Skips the specified count of the new item ids
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • get

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

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

        public final long skip​(long itemsCount)
        Skips the specified count of the new item ids
        Specified by:
        skip in interface com.github.akurilov.commons.io.Input<I extends Item>
        Parameters:
        itemsCount - count of items which should be skipped from the beginning
        Throws:
        java.io.IOException - doesn't throw
      • reset

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

        public final void close()
                         throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object