Interface Operable<T extends Operable<T>>

Type Parameters:
T - the class itself !
All Known Implementing Classes:
RGBAColor, Vec

public interface Operable<T extends Operable<T>>
This interface defines the kind of Objects a OpProgress will handle.
USAGE: class XYZ implements Operable<XYZ>
  • Method Summary

    Modifier and Type
    Method
    Description
    add(T other)
    Apply summand.
    get()
    Always ! Enter the code: return this;
    multiply(T other)
    Apply multiplicand.
    scalar(float scalar)
    Apply scalar.
    sub(T other)
    Apply subtrahend.
  • Method Details

    • scalar

      T scalar(float scalar)
      Apply scalar.
      Parameters:
      scalar - the scalar
      Returns:
      the object itself
    • multiply

      T multiply(T other)
      Apply multiplicand.
      Parameters:
      other - the other
      Returns:
      the object itself
    • add

      T add(T other)
      Apply summand.
      Parameters:
      other - the other
      Returns:
      the object itself
    • sub

      T sub(T other)
      Apply subtrahend.
      Parameters:
      other - the other
      Returns:
      the object itself
    • get

      T get()
      Always ! Enter the code: return this;
      Returns:
      this