Record Class LogSegmentId
java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.LogSegmentId
- Record Components:
value- non-negative segment id value
- All Implemented Interfaces:
Serializable, Comparable<LogSegmentId>
public record LogSegmentId(long value)
extends Record
implements Comparable<LogSegmentId>, Serializable
Monotonic physical segment identifier.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(LogSegmentId other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
LogSegmentId
public LogSegmentId(long value) Creates a segment id.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<LogSegmentId>
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
value
-