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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIntervalBound(long minInt, long maxInt, double minFloat, double maxFloat, boolean isBounded) Creates an instance of aIntervalBoundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisBoundedrecord component.doublemaxFloat()Returns the value of themaxFloatrecord component.longmaxInt()Returns the value of themaxIntrecord component.doubleminFloat()Returns the value of theminFloatrecord component.longminInt()Returns the value of theminIntrecord component.ofConstantFloat(double val) ofConstantInt(long val) ofFloat(double min, double max) ofInt(long min, long max) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
UNBOUNDED
-
-
Constructor Details
-
IntervalBound
public IntervalBound(long minInt, long maxInt, double minFloat, double maxFloat, boolean isBounded) Creates an instance of aIntervalBoundrecord class.- Parameters:
minInt- the value for theminIntrecord componentmaxInt- the value for themaxIntrecord componentminFloat- the value for theminFloatrecord componentmaxFloat- the value for themaxFloatrecord componentisBounded- the value for theisBoundedrecord component
-
-
Method Details
-
ofInt
-
ofFloat
-
ofConstantInt
-
ofConstantFloat
-
toString
-
hashCode
-
equals
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 thecomparemethod from their corresponding wrapper classes. -
minInt
public long minInt()Returns the value of theminIntrecord component.- Returns:
- the value of the
minIntrecord component
-
maxInt
public long maxInt()Returns the value of themaxIntrecord component.- Returns:
- the value of the
maxIntrecord component
-
minFloat
public double minFloat()Returns the value of theminFloatrecord component.- Returns:
- the value of the
minFloatrecord component
-
maxFloat
public double maxFloat()Returns the value of themaxFloatrecord component.- Returns:
- the value of the
maxFloatrecord component
-
isBounded
public boolean isBounded()Returns the value of theisBoundedrecord component.- Returns:
- the value of the
isBoundedrecord component
-