Package com.emc.mongoose.base.item.io
Class NewItemInput<I extends Item>
- java.lang.Object
-
- com.emc.mongoose.base.item.io.NewItemInput<I>
-
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected ItemFactory<I>itemFactoryprotected ItemNameInputitemNameInput
-
Constructor Summary
Constructors Constructor Description NewItemInput(ItemFactory<I> itemFactory, ItemNameInput itemNameInput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Iget()intget(java.util.List<I> buffer, int maxCount)voidreset()longskip(long itemsCount)Skips the specified count of the new item idsjava.lang.StringtoString()
-
-
-
Field Detail
-
itemFactory
protected final ItemFactory<I extends Item> itemFactory
-
itemNameInput
protected final ItemNameInput itemNameInput
-
-
Constructor Detail
-
NewItemInput
public NewItemInput(ItemFactory<I> itemFactory, ItemNameInput itemNameInput)
-
-
Method Detail
-
get
public I get()
-
get
public int get(java.util.List<I> buffer, int maxCount)
-
skip
public final long skip(long itemsCount)
Skips the specified count of the new item ids
-
reset
public final void reset()
-
close
public final void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-