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.@NotNull StringtoString()Returns a string representation of this record class.Methods inherited from interface AnyPartialSymbol
asPartialRelationMethods inherited from interface 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 thecomparemethod from their corresponding wrapper classes. -
hashCode
-
toString
-
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
-