Package com.vaadin.flow.component.slider
Record Class IntegerRangeSliderValue
java.lang.Object
java.lang.Record
com.vaadin.flow.component.slider.IntegerRangeSliderValue
- Record Components:
start- the start value of the rangeend- the end value of the range
- All Implemented Interfaces:
Serializable
Represents the value of an
IntegerRangeSlider, consisting of integer
start and end values.- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerRangeSliderValue(Integer start, Integer end) Creates a new IntegerRangeSliderValue with the given start and end values. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IntegerRangeSliderValue
Creates a new IntegerRangeSliderValue with the given start and end values.- Parameters:
start- the start value of the rangeend- the end value of the range- Throws:
IllegalArgumentException- if start is greater than end
-
-
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 withObjects::equals(Object,Object). -
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-