Package top.focess.qq.api.command.data
Class CommandBuffer
- java.lang.Object
-
- top.focess.qq.api.command.data.DataBuffer<Command>
-
- top.focess.qq.api.command.data.CommandBuffer
-
public class CommandBuffer extends DataBuffer<Command>
-
-
Constructor Summary
Constructors Constructor Description CommandBuffer(int size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommandBufferallocate(int size)voidflip()Flip all the buffers.Commandget()Get element in the buffer in ordervoidput(Command command)Put the element into the buffer
-
-
-
Method Detail
-
allocate
public static CommandBuffer allocate(int size)
-
flip
public void flip()
Description copied from class:DataBufferFlip all the buffers. Make them all readable.- Specified by:
flipin classDataBuffer<Command>
-
put
public void put(Command command)
Description copied from class:DataBufferPut the element into the buffer- Specified by:
putin classDataBuffer<Command>- Parameters:
command- the element need to be put in the buffer
-
get
public Command get()
Description copied from class:DataBufferGet element in the buffer in order- Specified by:
getin classDataBuffer<Command>- Returns:
- element in the buffer in order
-
-