Class StructField<T>

java.lang.Object
com.jme3.util.struct.StructField<T>
Direct Known Subclasses:
BooleanArrayField, BooleanField, ColorRGBAArrayField, ColorRGBAField, FloatArrayField, FloatField, IntArrayField, IntField, Matrix3fArrayField, Matrix3fField, Matrix4fArrayField, Matrix4fField, QuaternionArrayField, QuaternionField, SubStructArrayField, SubStructField, Vector2fArrayField, Vector2fField, Vector3fArrayField, Vector3fField, Vector4fArrayField, Vector4fField

public abstract class StructField<T> extends Object
A field of a struct
  • Field Details

    • value

      protected T value
    • isUpdateNeeded

      protected boolean isUpdateNeeded
  • Constructor Details

    • StructField

      protected StructField(int position, String name, T value)
  • Method Details

    • getDepth

      public int getDepth()
      Get depth of the field
      Returns:
    • getGroup

      public int getGroup()
      Get the group to which this field belongs (eg. a parent struct)
      Returns:
      id of the group
    • getPosition

      public int getPosition()
      Get position inside the struct
      Returns:
      position inside the struct
    • getValue

      public T getValue()
      Get value of this field
      Returns:
      value
    • isUpdateNeeded

      public boolean isUpdateNeeded()
      Check if field needs update
      Returns:
    • clearUpdateNeeded

      public void clearUpdateNeeded()
      Clear update needed used internally
    • getName

      public String getName()
      Get simple name of the field
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object