Record Class CosIdProperties.Radix
java.lang.Object
java.lang.Record
me.ahoo.cosid.spring.autoconfigure.CosIdProperties.Radix
- Record Components:
radix- the base, 2 to 62; default 62; cosid80: 62 or 36width- the most digits; default those ofLong.MAX_VALUE; not for cosid80, whose layout gives each part its widthpadStart- pad with leading zeros to the width; default false; not for cosid80
- Enclosing class:
CosIdProperties
public static record CosIdProperties.Radix(int radix, Integer width, Boolean padStart)
extends Record
A radix codec.
-
Constructor Summary
Constructors -
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.padStart()Returns the value of thepadStartrecord component.intradix()Returns the value of theradixrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
radix
public int radix()Returns the value of theradixrecord component.- Returns:
- the value of the
radixrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
padStart
Returns the value of thepadStartrecord component.- Returns:
- the value of the
padStartrecord component
-