Package top.focess.qq.api.command.data
Class LongBuffer
- java.lang.Object
-
- top.focess.qq.api.command.data.DataBuffer<Long>
-
- top.focess.qq.api.command.data.LongBuffer
-
public class LongBuffer extends DataBuffer<Long>
Represent a buffer of Long.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LongBufferallocate(int size)Allocate a LongBuffer with fixed sizevoidflip()Flip all the buffers.Longget()Get element in the buffer in orderLongget(int index)Get element in the buffer by indexvoidput(Long l)Put the element into the buffer
-
-
-
Method Detail
-
allocate
public static LongBuffer allocate(int size)
Allocate a LongBuffer with fixed size- Parameters:
size- the target buffer size- Returns:
- a LongBuffer with fixed size
-
flip
public void flip()
Description copied from class:DataBufferFlip all the buffers. Make them all readable.- Specified by:
flipin classDataBuffer<Long>
-
put
public void put(Long l)
Description copied from class:DataBufferPut the element into the buffer- Specified by:
putin classDataBuffer<Long>- Parameters:
l- the element need to be put in the buffer
-
get
public Long get()
Description copied from class:DataBufferGet element in the buffer in order- Specified by:
getin classDataBuffer<Long>- Returns:
- element in the buffer in order
-
get
public Long get(int index)
Description copied from class:DataBufferGet element in the buffer by index- Specified by:
getin classDataBuffer<Long>- Parameters:
index- the element index- Returns:
- element in the index of the buffer
-
-