Package top.focess.qq.api.command.data
Class PluginBuffer
- java.lang.Object
-
- top.focess.command.data.DataBuffer<Plugin>
-
- top.focess.qq.api.command.data.PluginBuffer
-
public class PluginBuffer extends top.focess.command.data.DataBuffer<Plugin>
Represent a buffer of Plugin.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginBufferallocate(int size)Allocate a PluginBuffer with fixed sizevoidflip()Pluginget()Pluginget(int index)voidput(Plugin plugin)
-
-
-
Method Detail
-
allocate
@NotNull @Contract("_ -> new") public static PluginBuffer allocate(int size)Allocate a PluginBuffer with fixed size- Parameters:
size- the target buffer size- Returns:
- a PluginBuffer with fixed size
-
flip
public void flip()
- Specified by:
flipin classtop.focess.command.data.DataBuffer<Plugin>
-
put
public void put(@NotNull Plugin plugin)- Specified by:
putin classtop.focess.command.data.DataBuffer<Plugin>
-
get
@NotNull public Plugin get()
- Specified by:
getin classtop.focess.command.data.DataBuffer<Plugin>
-
-