Module org.legstar.cobol.base
Package org.legstar.cobol.utils
Record Class PictureUtils.AlphaNumeric
java.lang.Object
java.lang.Record
org.legstar.cobol.utils.PictureUtils.AlphaNumeric
- Record Components:
charNum- number of characters
- Enclosing class:
PictureUtils
An alphanumeric properties
-
Constructor Summary
ConstructorsConstructorDescriptionAlphaNumeric(int charNum) Creates an instance of aAlphaNumericrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcharNum()Returns the value of thecharNumrecord component.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.
-
Constructor Details
-
AlphaNumeric
public AlphaNumeric(int charNum) Creates an instance of aAlphaNumericrecord class.- Parameters:
charNum- the value for thecharNumrecord 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 '=='. -
charNum
public int charNum()Returns the value of thecharNumrecord component.- Returns:
- the value of the
charNumrecord component
-