Record Class TypeInfo
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.translator.typehierarchy.TypeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionTypeInfo(Collection<PartialRelation> supertypes, boolean abstractType) TypeInfo(Set<PartialRelation> supertypes, boolean abstractType) Creates an instance of aTypeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theabstractTyperecord component.addSupertype(PartialRelation newSupertype) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesupertypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TypeInfo
-
TypeInfo
Creates an instance of aTypeInforecord class.- Parameters:
supertypes- the value for thesupertypesrecord componentabstractType- the value for theabstractTyperecord 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 thesupertypesrecord component.- Returns:
- the value of the
supertypesrecord component
-
abstractType
public boolean abstractType()Returns the value of theabstractTyperecord component.- Returns:
- the value of the
abstractTyperecord component
-