Package io.datarouter.types
Record Class ReverseUlid
java.lang.Object
java.lang.Record
io.datarouter.types.ReverseUlid
- All Implemented Interfaces:
Comparable<ReverseUlid>
-
Constructor Summary
ConstructorsConstructorDescriptionReverseUlid(String reverseValue) Creates an instance of aReverseUlidrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ReverseUlid other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static StringreverseRandomPart(char[] randomPart, char[] buffer) Returns the value of thereverseValuerecord component.static ReverseUlidtoReverseUlid(Ulid ulid) toString()Returns a string representation of this record class.static UlidtoUlid(ReverseUlid reverseUlid)
-
Constructor Details
-
ReverseUlid
Creates an instance of aReverseUlidrecord class.- Parameters:
reverseValue- the value for thereverseValuerecord component
-
ReverseUlid
public ReverseUlid()
-
-
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. -
compareTo
- Specified by:
compareToin interfaceComparable<ReverseUlid>
-
toReverseUlid
-
toUlid
-
reverseRandomPart
-
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). -
reverseValue
Returns the value of thereverseValuerecord component.- Returns:
- the value of the
reverseValuerecord component
-