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 Summary
ConstructorDescriptionPartialFunction
(String name, int arity, AbstractDomain<A, C> abstractDomain) Creates an instance of aPartialFunction
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabstractDomain
record component.int
arity()
Returns the value of thearity
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
PartialFunction
Creates an instance of aPartialFunction
record class.- Parameters:
name
- the value for thename
record componentarity
- the value for thearity
record componentabstractDomain
- the value for theabstractDomain
record component
-
-
Method Details
-
defaultValue
- Specified by:
defaultValue
in interfacePartialSymbol<A extends AbstractValue<A,
C>, C>
-
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 '=='. -
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. -
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. -
name
Returns the value of thename
record component.- Specified by:
name
in interfaceAnyPartialSymbol
- Returns:
- the value of the
name
record component
-
arity
public int arity()Returns the value of thearity
record component.- Specified by:
arity
in interfaceAnyPartialSymbol
- Returns:
- the value of the
arity
record component
-
abstractDomain
Returns the value of theabstractDomain
record component.- Specified by:
abstractDomain
in interfaceAnyPartialSymbol
- Specified by:
abstractDomain
in interfacePartialSymbol<A extends AbstractValue<A,
C>, C> - Returns:
- the value of the
abstractDomain
record component
-