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