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
ConstructorsConstructorDescriptionPartialFunction(String name, int arity, AbstractDomain<A, C> abstractDomain) Creates an instance of aPartialFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabstractDomainrecord component.intarity()Returns the value of thearityrecord component.call(NodeVariable... arguments) call(Concreteness concreteness, NodeVariable... arguments) call(ConcretenessSpecification concreteness, List<NodeVariable> arguments) booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.store.reasoning.representation.AnyPartialSymbol
asPartialRelationMethods inherited from interface tools.refinery.store.reasoning.representation.PartialSymbol
asPartialFunction
-
Constructor Details
-
PartialFunction
Creates an instance of aPartialFunctionrecord class.- Parameters:
name- the value for thenamerecord componentarity- the value for thearityrecord componentabstractDomain- the value for theabstractDomainrecord component
-
-
Method Details
-
defaultValue
- Specified by:
defaultValuein interfacePartialSymbol<A extends AbstractValue<A,C>, C>
-
call
- Specified by:
callin interfaceAnyPartialFunction
-
call
- Specified by:
callin interfaceAnyPartialFunction
-
call
- Specified by:
callin interfaceAnyPartialFunction
-
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 thenamerecord component.- Specified by:
namein interfaceAnyPartialSymbol- Returns:
- the value of the
namerecord component
-
arity
public int arity()Returns the value of thearityrecord component.- Specified by:
arityin interfaceAnyPartialSymbol- Returns:
- the value of the
arityrecord component
-
abstractDomain
Returns the value of theabstractDomainrecord component.- Specified by:
abstractDomainin interfaceAnyPartialSymbol- Specified by:
abstractDomainin interfacePartialSymbol<A extends AbstractValue<A,C>, C> - Returns:
- the value of the
abstractDomainrecord component
-