Package top.focess.qq.api.command.data
Class CommandBuffer
- java.lang.Object
-
- top.focess.command.data.DataBuffer<Command>
-
- top.focess.qq.api.command.data.CommandBuffer
-
public class CommandBuffer extends top.focess.command.data.DataBuffer<Command>
Represent a buffer of 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)Allocate a CommandBuffer with fixed sizevoidflip()Commandget()Commandget(int index)voidput(Command command)
-
-
-
Method Detail
-
allocate
@NotNull @Contract("_ -> new") public static CommandBuffer allocate(int size)Allocate a CommandBuffer with fixed size- Parameters:
size- the target buffer size- Returns:
- a CommandBuffer with fixed size
-
flip
public void flip()
- Specified by:
flipin classtop.focess.command.data.DataBuffer<Command>
-
put
public void put(@NotNull Command command)- Specified by:
putin classtop.focess.command.data.DataBuffer<Command>
-
get
@NotNull public Command get()
- Specified by:
getin classtop.focess.command.data.DataBuffer<Command>
-
-