Record Class ModelDiagnostics.ObservedType
java.lang.Object
java.lang.Record
io.fluxzero.sdk.persisting.repository.ModelDiagnostics.ObservedType
- Record Components:
serializedType- stored identifierrevision- stored revisionformat- stored serialization formatlocalType- identifier lookup and local revision; matching revisions do not prove compatibility
- Enclosing class:
ModelDiagnostics
public static record ModelDiagnostics.ObservedType(String serializedType, int revision, String format, TypeInspection localType)
extends Record
One observed representation, before structural upcasting.
-
Constructor Summary
ConstructorsConstructorDescriptionObservedType(String serializedType, int revision, String format, TypeInspection localType) Creates an instance of aObservedTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalTyperecord component.intrevision()Returns the value of therevisionrecord component.Returns the value of theserializedTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObservedType
Creates an instance of aObservedTyperecord class.- Parameters:
serializedType- the value for theserializedTyperecord componentrevision- the value for therevisionrecord componentformat- the value for theformatrecord componentlocalType- the value for thelocalTyperecord 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. -
serializedType
Returns the value of theserializedTyperecord component.- Returns:
- the value of the
serializedTyperecord component
-
revision
-
format
-
localType
-