Record Class ModelKeyframe

java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelKeyframe
Record Components:
channel - channel
dataPoints - movement
bezierLeftTime - bezier left time
bezierLeftValue - bezier left value
bezierRightTime - bezier right time
bezierRightValue - bezier right value
interpolation - interpolation type
time - keyframe time
All Implemented Interfaces:
Comparable<Timed>, Timed

@Internal public record ModelKeyframe(@NotNull KeyframeChannel channel, @NotNull List<Datapoint> dataPoints, @Nullable Float3 bezierLeftTime, @Nullable Float3 bezierLeftValue, @Nullable Float3 bezierRightTime, @Nullable Float3 bezierRightValue, @Nullable String interpolation, float time) extends Record implements Timed
A keyframe of model.
  • Constructor Details

    • ModelKeyframe

      public ModelKeyframe(@NotNull @NotNull KeyframeChannel channel, @NotNull @NotNull List<Datapoint> dataPoints, @Nullable @Nullable Float3 bezierLeftTime, @Nullable @Nullable Float3 bezierLeftValue, @Nullable @Nullable Float3 bezierRightTime, @Nullable @Nullable Float3 bezierRightValue, @Nullable @Nullable String interpolation, float time)
      Creates an instance of a ModelKeyframe record class.
      Parameters:
      channel - the value for the channel record component
      dataPoints - the value for the dataPoints record component
      bezierLeftTime - the value for the bezierLeftTime record component
      bezierLeftValue - the value for the bezierLeftValue record component
      bezierRightTime - the value for the bezierRightTime record component
      bezierRightValue - the value for the bezierRightValue record component
      interpolation - the value for the interpolation record component
      time - the value for the time record component
  • Method Details

    • findInterpolation

      @NotNull public @NotNull VectorInterpolation findInterpolation()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • channel

      @NotNull public @NotNull KeyframeChannel channel()
      Returns the value of the channel record component.
      Returns:
      the value of the channel record component
    • dataPoints

      @SerializedName("data_points") @NotNull public @NotNull List<Datapoint> dataPoints()
      Returns the value of the dataPoints record component.
      Returns:
      the value of the dataPoints record component
    • bezierLeftTime

      @SerializedName("bezier_left_time") @Nullable public @Nullable Float3 bezierLeftTime()
      Returns the value of the bezierLeftTime record component.
      Returns:
      the value of the bezierLeftTime record component
    • bezierLeftValue

      @SerializedName("bezier_left_value") @Nullable public @Nullable Float3 bezierLeftValue()
      Returns the value of the bezierLeftValue record component.
      Returns:
      the value of the bezierLeftValue record component
    • bezierRightTime

      @SerializedName("bezier_right_time") @Nullable public @Nullable Float3 bezierRightTime()
      Returns the value of the bezierRightTime record component.
      Returns:
      the value of the bezierRightTime record component
    • bezierRightValue

      @SerializedName("bezier_right_value") @Nullable public @Nullable Float3 bezierRightValue()
      Returns the value of the bezierRightValue record component.
      Returns:
      the value of the bezierRightValue record component
    • interpolation

      @Nullable public @Nullable String interpolation()
      Returns the value of the interpolation record component.
      Returns:
      the value of the interpolation record component
    • time

      public float time()
      Returns the value of the time record component.
      Specified by:
      time in interface Timed
      Returns:
      the value of the time record component