Record Class LogicalType.IntType
java.lang.Object
java.lang.Record
dev.hardwood.metadata.LogicalType.IntType
- All Implemented Interfaces:
LogicalType
- Enclosing interface:
LogicalType
public static record LogicalType.IntType(int bitWidth, boolean isSigned)
extends Record
implements LogicalType
-
Nested Class Summary
Nested classes/interfaces inherited from interface LogicalType
LogicalType.BsonType, LogicalType.DateType, LogicalType.DecimalType, LogicalType.EnumType, LogicalType.IntervalType, LogicalType.IntType, LogicalType.JsonType, LogicalType.ListType, LogicalType.MapType, LogicalType.StringType, LogicalType.TimestampType, LogicalType.TimeType, LogicalType.TimeUnit, LogicalType.UuidType -
Constructor Summary
ConstructorsConstructorDescriptionIntType(int bitWidth, boolean isSigned) Creates an instance of aIntTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbitWidth()Returns the value of thebitWidthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisSigned()Returns the value of theisSignedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IntType
public IntType(int bitWidth, boolean isSigned) Creates an instance of aIntTyperecord class.- Parameters:
bitWidth- the value for thebitWidthrecord componentisSigned- the value for theisSignedrecord component
-
-
Method Details
-
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. -
bitWidth
public int bitWidth()Returns the value of thebitWidthrecord component.- Returns:
- the value of the
bitWidthrecord component
-
isSigned
public boolean isSigned()Returns the value of theisSignedrecord component.- Returns:
- the value of the
isSignedrecord component
-