Record Class TypeInfo
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.translator.typehierarchy.TypeInfo
-
Constructor Summary
ConstructorDescriptionTypeInfo
(Collection<PartialRelation> supertypes, boolean abstractType) TypeInfo
(Set<PartialRelation> supertypes, boolean abstractType) Creates an instance of aTypeInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theabstractType
record component.addSupertype
(PartialRelation newSupertype) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesupertypes
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TypeInfo
-
TypeInfo
Creates an instance of aTypeInfo
record class.- Parameters:
supertypes
- the value for thesupertypes
record componentabstractType
- the value for theabstractType
record component
-
-
Method Details
-
addSupertype
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
supertypes
Returns the value of thesupertypes
record component.- Returns:
- the value of the
supertypes
record component
-
abstractType
public boolean abstractType()Returns the value of theabstractType
record component.- Returns:
- the value of the
abstractType
record component
-