Record Class AlgebraicSignature.IntervalBound

java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.algebra.AlgebraicSignature.IntervalBound
Enclosing class:
AlgebraicSignature

public static record AlgebraicSignature.IntervalBound(long minInt, long maxInt, double minFloat, double maxFloat, boolean isBounded) extends Record
  • Field Details

  • Constructor Details

    • IntervalBound

      public IntervalBound(long minInt, long maxInt, double minFloat, double maxFloat, boolean isBounded)
      Creates an instance of a IntervalBound record class.
      Parameters:
      minInt - the value for the minInt record component
      maxInt - the value for the maxInt record component
      minFloat - the value for the minFloat record component
      maxFloat - the value for the maxFloat record component
      isBounded - the value for the isBounded record component
  • Method Details

    • ofInt

      public static AlgebraicSignature.IntervalBound ofInt(long min, long max)
    • ofFloat

      public static AlgebraicSignature.IntervalBound ofFloat(double min, double max)
    • ofConstantInt

      public static AlgebraicSignature.IntervalBound ofConstantInt(long val)
    • ofConstantFloat

      public static AlgebraicSignature.IntervalBound ofConstantFloat(double val)
    • 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. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      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.
    • minInt

      public long minInt()
      Returns the value of the minInt record component.
      Returns:
      the value of the minInt record component
    • maxInt

      public long maxInt()
      Returns the value of the maxInt record component.
      Returns:
      the value of the maxInt record component
    • minFloat

      public double minFloat()
      Returns the value of the minFloat record component.
      Returns:
      the value of the minFloat record component
    • maxFloat

      public double maxFloat()
      Returns the value of the maxFloat record component.
      Returns:
      the value of the maxFloat record component
    • isBounded

      public boolean isBounded()
      Returns the value of the isBounded record component.
      Returns:
      the value of the isBounded record component