Record Class LogicalType.TimestampType
java.lang.Object
java.lang.Record
dev.hardwood.metadata.LogicalType.TimestampType
- All Implemented Interfaces:
LogicalType
- Enclosing interface:
LogicalType
public static record LogicalType.TimestampType(boolean isAdjustedToUTC, LogicalType.TimeUnit unit)
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
ConstructorsConstructorDescriptionTimestampType(boolean isAdjustedToUTC, LogicalType.TimeUnit unit) Creates an instance of aTimestampTyperecord class. -
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.booleanReturns the value of theisAdjustedToUTCrecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.
-
Constructor Details
-
TimestampType
Creates an instance of aTimestampTyperecord class.- Parameters:
isAdjustedToUTC- the value for theisAdjustedToUTCrecord componentunit- the value for theunitrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
isAdjustedToUTC
public boolean isAdjustedToUTC()Returns the value of theisAdjustedToUTCrecord component.- Returns:
- the value of the
isAdjustedToUTCrecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-