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