Record Class SpreadSource.Range
java.lang.Object
java.lang.Record
dev.lukebemish.dynamicassetgenerator.api.client.generators.texsources.SpreadSource.Range
- Record Components:
lowerBound- the lower edge of the range; must be between 0 and 255, inclusiveupperBound- the upper edge of the range; must be between 0 and 255, inclusive, and must be larger than the lower edge.
- Enclosing class:
SpreadSource
Represents a range of integers between 0 and 255, bounded exclusively on the top.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRange(int lowerBound, int upperBound) Creates an instance of aRangerecord 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.intReturns the value of thelowerBoundrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theupperBoundrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Range
public Range(int lowerBound, int upperBound) Creates an instance of aRangerecord class.- Parameters:
lowerBound- the value for thelowerBoundrecord componentupperBound- the value for theupperBoundrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
lowerBound
public int lowerBound()Returns the value of thelowerBoundrecord component.- Returns:
- the value of the
lowerBoundrecord component
-
upperBound
public int upperBound()Returns the value of theupperBoundrecord component.- Returns:
- the value of the
upperBoundrecord component
-