Package com.storedobject.common
Class IntegerRange
Represents a range of integer values with a start point ("from") and an end point ("to").
This class extends the generic
Range<T> class and provides implementations
for integer-specific behavior of range manipulation.
The class is designed to handle ranges of Integer objects and ensures that
the values within the range are represented and compared appropriately as integers.- Author:
- Syam
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for theIntegerRangeclass.IntegerRange(Integer from, Integer to) Constructs anIntegerRangeinstance with the specified start and end values. -
Method Summary
Modifier and TypeMethodDescriptionprotected IntegerCreates a shallow copy of the provided object.protected booleanCompares two objects of type T for equality.protected longCalculates a numeric representation of the given data.
-
Constructor Details
-
IntegerRange
public IntegerRange()Default constructor for theIntegerRangeclass. Initializes the range with a starting value of 0 and an ending value of 0, effectively representing an empty or zero-length range. -
IntegerRange
-
-
Method Details
-
clone
Description copied from class:RangeCreates a shallow copy of the provided object. This method is used to generate a clone of the specified input object of the same type. -
same
Description copied from class:RangeCompares two objects of type T for equality. -
value
Description copied from class:RangeCalculates a numeric representation of the given data. The implementation currently returns a default value.
-