Package fr.becpg.repo.audit.service.impl
Record Class DatabaseAuditServiceImpl.IdRange
java.lang.Object
java.lang.Record
fr.becpg.repo.audit.service.impl.DatabaseAuditServiceImpl.IdRange
- Enclosing class:
DatabaseAuditServiceImpl
A closed range of audit entry identifiers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DatabaseAuditServiceImpl.IdRangeprivate final longThe field for thehighIdrecord component.private final longThe field for thelowIdrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIdRange(long lowId, long highId) Creates an instance of aIdRangerecord 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.longhighId()Returns the value of thehighIdrecord component.private booleanisEmpty()longlowId()Returns the value of thelowIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
lowId
private final long lowIdThe field for thelowIdrecord component. -
highId
private final long highIdThe field for thehighIdrecord component. -
EMPTY
-
-
Constructor Details
-
IdRange
private IdRange(long lowId, long highId) Creates an instance of aIdRangerecord class.- Parameters:
lowId- the value for thelowIdrecord componenthighId- the value for thehighIdrecord component
-
-
Method Details
-
isEmpty
private boolean isEmpty() -
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 '=='. -
lowId
public long lowId()Returns the value of thelowIdrecord component.- Returns:
- the value of the
lowIdrecord component
-
highId
public long highId()Returns the value of thehighIdrecord component.- Returns:
- the value of the
highIdrecord component
-