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