Record Class PartialFunction<A extends AbstractValue<A,C>,C>

java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.representation.PartialFunction<A,C>
All Implemented Interfaces:
AnyPartialFunction, AnyPartialSymbol, PartialSymbol<A,C>

public record PartialFunction<A extends AbstractValue<A,C>,C>(String name, int arity, AbstractDomain<A extends AbstractValue<A,C>,C> abstractDomain) extends Record implements AnyPartialFunction, PartialSymbol<A,C>
  • Constructor Details

    • PartialFunction

      public PartialFunction(String name, int arity, AbstractDomain<A,C> abstractDomain)
      Creates an instance of a PartialFunction record class.
      Parameters:
      name - the value for the name record component
      arity - the value for the arity record component
      abstractDomain - the value for the abstractDomain record component
  • Method Details

    • defaultValue

      public A defaultValue()
      Specified by:
      defaultValue in interface PartialSymbol<A extends AbstractValue<A,C>,C>
    • equals

      public boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface AnyPartialSymbol
      Returns:
      the value of the name record component
    • arity

      public int arity()
      Returns the value of the arity record component.
      Specified by:
      arity in interface AnyPartialSymbol
      Returns:
      the value of the arity record component
    • abstractDomain

      public AbstractDomain<A,C> abstractDomain()
      Returns the value of the abstractDomain record component.
      Specified by:
      abstractDomain in interface AnyPartialSymbol
      Specified by:
      abstractDomain in interface PartialSymbol<A extends AbstractValue<A,C>,C>
      Returns:
      the value of the abstractDomain record component