Record Class CharRange
java.lang.Object
java.lang.Record
eu.cloudnetservice.ext.platforminject.processor.id.CharRange
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final charThe field for thelowerBoundsrecord component.private final charThe field for theupperBoundsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCharRange(char lowerBounds, char upperBounds) Creates an instance of aCharRangerecord 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.booleaninRange(char c) charReturns the value of thelowerBoundsrecord component.range(char singleBound) range(char lowerBounds, char upperBounds) final StringtoString()Returns a string representation of this record class.charReturns the value of theupperBoundsrecord component.
-
Field Details
-
lowerBounds
private final char lowerBoundsThe field for thelowerBoundsrecord component. -
upperBounds
private final char upperBoundsThe field for theupperBoundsrecord component.
-
-
Constructor Details
-
CharRange
public CharRange(char lowerBounds, char upperBounds) Creates an instance of aCharRangerecord class.- Parameters:
lowerBounds- the value for thelowerBoundsrecord componentupperBounds- the value for theupperBoundsrecord component
-
-
Method Details
-
range
-
range
-
inRange
public boolean inRange(char c) -
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. -
lowerBounds
public char lowerBounds()Returns the value of thelowerBoundsrecord component.- Returns:
- the value of the
lowerBoundsrecord component
-
upperBounds
public char upperBounds()Returns the value of theupperBoundsrecord component.- Returns:
- the value of the
upperBoundsrecord component
-