Record Class TypeInspection
java.lang.Object
java.lang.Record
io.fluxzero.sdk.common.serialization.TypeInspection
- Record Components:
status- whether the serializer recognizes this identifier, or cannot provide this diagnosticresolvedType- identifier after aliases, when availablelocalRevision- declared local revision, or null when it cannot be determined
public record TypeInspection(TypeInspection.Status status, String resolvedType, Integer localRevision)
extends Record
Metadata-only local type lookup. This does not execute upcasters, decode data, or qualify application logic.
A missing input type may still be transformed into a known type by a revision-specific upcaster.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumResult of an identifier lookup, independent of payload/replay compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionTypeInspection(TypeInspection.Status status, String resolvedType, Integer localRevision) Creates an instance of aTypeInspectionrecord 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.Returns the value of thelocalRevisionrecord component.Returns the value of theresolvedTyperecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TypeInspection
Creates an instance of aTypeInspectionrecord class.- Parameters:
status- the value for thestatusrecord componentresolvedType- the value for theresolvedTyperecord componentlocalRevision- the value for thelocalRevisionrecord 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 withObjects::equals(Object,Object). -
status
-
resolvedType
Returns the value of theresolvedTyperecord component.- Returns:
- the value of the
resolvedTyperecord component
-
localRevision
Returns the value of thelocalRevisionrecord component.- Returns:
- the value of the
localRevisionrecord component
-