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 @NotNull CommandBufferallocate(int size)Allocate a CommandBuffer with fixed sizevoidflip()@NotNull Commandget()@NotNull Commandget(int index)voidput(@NotNull Command command)
-
-
-
Method Detail
-
allocate
@NotNull @Contract("_ -> new") public static @NotNull 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 @NotNull Command command)- Specified by:
putin classtop.focess.command.data.DataBuffer<Command>
-
get
@NotNull public @NotNull Command get()
- Specified by:
getin classtop.focess.command.data.DataBuffer<Command>
-
-