Record Class Range
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.Range
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRange(int value) Range(int value, Range.Type type) Creates an instance of aRangerecord class.Range(Range.Type type) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static RangefromString(String string) static Rangeget(int range) static Rangeget(Range.Type type) final inthashCode()Returns a hash code value for this object.booleanis(Range.Type type) toJson()final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.intvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Range
Creates an instance of aRangerecord class.- Parameters:
value- the value for thevaluerecord componenttype- the value for thetyperecord component
-
Range
public Range(int value) -
Range
-
-
Method Details
-
get
-
get
-
fromJson
-
fromString
-
toJson
-
is
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-