Class BinaryReaderHandlesHolderImpl
- java.lang.Object
-
- org.apache.ignite.internal.binary.BinaryReaderHandlesHolderImpl
-
- All Implemented Interfaces:
BinaryReaderHandlesHolder
public class BinaryReaderHandlesHolderImpl extends Object implements BinaryReaderHandlesHolder
Simple holder for handles.
-
-
Constructor Summary
Constructors Constructor Description BinaryReaderHandlesHolderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetHandle(int pos)Get handle.BinaryReaderHandleshandles()Get all handles.booleanisEmpty()voidsetHandle(Object obj, int pos)Set handle.
-
-
-
Method Detail
-
setHandle
public void setHandle(Object obj, int pos)
Set handle.- Specified by:
setHandlein interfaceBinaryReaderHandlesHolder- Parameters:
obj- Object.pos- Position.
-
getHandle
public Object getHandle(int pos)
Get handle.- Specified by:
getHandlein interfaceBinaryReaderHandlesHolder- Parameters:
pos- Position.- Returns:
- Handle.
-
handles
public BinaryReaderHandles handles()
Get all handles.- Specified by:
handlesin interfaceBinaryReaderHandlesHolder- Returns:
- Handles.
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceBinaryReaderHandlesHolder
-
-