Record Class TypeInfo
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.translator.typehierarchy.TypeInfo
public record TypeInfo(Set<PartialRelation> supertypes, boolean abstractType, boolean decide)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTypeInfo(Collection<PartialRelation> supertypes, boolean abstractType) TypeInfo(Collection<PartialRelation> supertypes, boolean abstractType, boolean decide) TypeInfo(Set<PartialRelation> supertypes, boolean abstractType, boolean decide) Creates an instance of aTypeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theabstractTyperecord component.addSupertype(PartialRelation newSupertype) booleandecide()Returns the value of thedeciderecord component.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
-
TypeInfo
Creates an instance of aTypeInforecord class.- Parameters:
supertypes- the value for thesupertypesrecord componentabstractType- the value for theabstractTyperecord componentdecide- the value for thedeciderecord 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
-
decide
public boolean decide()Returns the value of thedeciderecord component.- Returns:
- the value of the
deciderecord component
-