Record Class GuiFontFace.Range
java.lang.Object
java.lang.Record
com.render.api.gui.GuiFontFace.Range
- Record Components:
minimum- inclusive lower boundmaximum- inclusive upper bound
- Enclosing class:
GuiFontFace
Inclusive numeric range.
-
Constructor Summary
ConstructorsConstructorDescriptionRange(float minimum, float maximum) Creates an instance of aRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(float value) floatdistance(float value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatmaximum()Returns the value of themaximumrecord component.floatminimum()Returns the value of theminimumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Range
-
-
Method Details
-
contains
public boolean contains(float value) -
distance
public float distance(float value) -
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. -
minimum
-
maximum
-