Package org.compiere.db.partition
Record Class RangePartitionInterval.Interval
java.lang.Object
java.lang.Record
org.compiere.db.partition.RangePartitionInterval.Interval
- Enclosing class:
- RangePartitionInterval
Year and month interval
-
Constructor Summary
ConstructorDescriptionInterval
(int years, int months) Creates an instance of aInterval
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
months()
Returns the value of themonths
record component.final String
toString()
Returns a string representation of this record class.int
years()
Returns the value of theyears
record component.
-
Constructor Details
-
Interval
public Interval(int years, int months) Creates an instance of aInterval
record class.- Parameters:
years
- the value for theyears
record componentmonths
- the value for themonths
record 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 '=='. -
years
public int years()Returns the value of theyears
record component.- Returns:
- the value of the
years
record component
-
months
public int months()Returns the value of themonths
record component.- Returns:
- the value of the
months
record component
-