Class BooleanBuffer


  • public class BooleanBuffer
    extends DataBuffer<Boolean>
    Represent a buffer of Boolean.
    • 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: DataBuffer
        Put the element into the buffer
        Specified by:
        put in class DataBuffer<Boolean>
        Parameters:
        b - the element need to be put in the buffer
      • get

        public Boolean get()
        Description copied from class: DataBuffer
        Get element in the buffer in order
        Specified by:
        get in class DataBuffer<Boolean>
        Returns:
        element in the buffer in order
      • get

        public Boolean get​(int index)
        Description copied from class: DataBuffer
        Get element in the buffer by index
        Specified by:
        get in class DataBuffer<Boolean>
        Parameters:
        index - the element index
        Returns:
        element in the index of the buffer
      • flip

        public void flip()
        Description copied from class: DataBuffer
        Flip all the buffers. Make them all readable.
        Specified by:
        flip in class DataBuffer<Boolean>