Class BBVector

java.lang.Object
de.linusdev.lutils.struct.abstracts.Structure
de.linusdev.lutils.math.vector.buffer.BBVector
All Implemented Interfaces:
Vector, MemorySizeable, NativeParsable
Direct Known Subclasses:
BBFloatN, BBIntN, BBLongN

public abstract class BBVector extends Structure implements Vector
  • Field Details

    • GENERATOR

      @NotNull public static final @NotNull StaticGenerator GENERATOR
  • Constructor Details

    • BBVector

      public BBVector()
  • Method Details

    • isArrayBacked

      public boolean isArrayBacked()
      Description copied from interface: Vector
      Whether this vector is array backed.
      Specified by:
      isArrayBacked in interface Vector
      Returns:
      true if this vector is array backed.
    • isBufferBacked

      public boolean isBufferBacked()
      Description copied from interface: Vector
      Whether this vector is buffer backed. If this method returns true, Vector.getStructure() will not throw an UnsupportedOperationException.
      Specified by:
      isBufferBacked in interface Vector
      Returns:
      true if this vector is buffer backed.
    • getStructure

      @NotNull public @NotNull Structure getStructure()
      Specified by:
      getStructure in interface Vector
      Returns:
      this vector as Structure
    • isView

      public boolean isView()
      Description copied from interface: Vector
      Whether this vector is only a view onto another vector.
      Specified by:
      isView in interface Vector
      Returns:
      true if this vector is a view.