- java.lang.Object
-
- com.tigerbeetle.Batch
-
- com.tigerbeetle.CreateAccountResultBatch
-
public final class CreateAccountResultBatch extends Batch
-
-
Constructor Summary
Constructors Constructor Description CreateAccountResultBatch(int capacity)
Creates an empty batch with the desired maximum capacity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
CreateAccountResult
getResult()
-
Methods inherited from class com.tigerbeetle.Batch
add, at, beforeFirst, getArray, getCapacity, getLength, getPosition, getUInt128, getUInt128, getUInt16, getUInt32, getUInt64, isReadOnly, isValidPosition, next, putArray, putUInt128, putUInt128, putUInt16, putUInt32, putUInt64, setPosition
-
-
-
-
Constructor Detail
-
CreateAccountResultBatch
public CreateAccountResultBatch(int capacity)
Creates an empty batch with the desired maximum capacity.Once created, an instance cannot be resized, however it may contain any number of elements between zero and its
capacity
.- Parameters:
capacity
- the maximum capacity.- Throws:
IllegalArgumentException
- if capacity is negative.
-
-
Method Detail
-
getIndex
public int getIndex()
- Throws:
IllegalStateException
- if not at avalid position
.
-
getResult
public CreateAccountResult getResult()
- Throws:
IllegalStateException
- if not at avalid position
.
-
-