Class EnergyPair

Object
EnergyPair

public final class EnergyPair extends Object
Represents a pair of Marks with their associated total energy.

This class is immutable and automatically generates getters, equals, hashCode, and toString methods via Lombok.

  • Constructor Details

    • EnergyPair

      public EnergyPair(MarkPair<Mark> pair, EnergyTotal energyTotal)
      Creates a new EnergyPair instance.
      Parameters:
      pair - The pair of marks.
      energyTotal - The total energy associated with the pair of marks.
  • Method Details

    • getPair

      public MarkPair<Mark> getPair()
      The pair of marks.
    • getEnergyTotal

      public EnergyTotal getEnergyTotal()
      The total energy associated with the pair of marks.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object