Package org.sosy_lab.java_smt.basicimpl
Record Class FunctionDeclarationImpl<F extends Formula,T>
java.lang.Object
java.lang.Record
org.sosy_lab.java_smt.basicimpl.FunctionDeclarationImpl<F,T>
- All Implemented Interfaces:
FunctionDeclaration<F>
@Immutable(containerOf="T")
public record FunctionDeclarationImpl<F extends Formula,T> (FunctionDeclarationKind getKind, String getName, FormulaType<F extends Formula> getType, ImmutableList<FormulaType<?>> getArgumentTypes, T getSolverDeclaration)
extends Record
implements FunctionDeclaration<F>
Declaration of a function.
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionDeclarationImpl(FunctionDeclarationKind getKind, String getName, FormulaType<F> getType, ImmutableList<FormulaType<?>> getArgumentTypes, T getSolverDeclaration) Creates an instance of aFunctionDeclarationImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegetArgumentTypesrecord component.getKind()Returns the value of thegetKindrecord component.getName()Returns the value of thegetNamerecord component.Returns the value of thegetSolverDeclarationrecord component.getType()Returns the value of thegetTyperecord component.final inthashCode()Returns a hash code value for this object.static <F extends Formula,T>
FunctionDeclarationImpl<F,T> of(String name, FunctionDeclarationKind kind, List<FormulaType<?>> pArgumentTypes, FormulaType<F> pReturnType, T pDeclaration) toString()Returns a string representation of this record class.
-
Constructor Details
-
FunctionDeclarationImpl
public FunctionDeclarationImpl(FunctionDeclarationKind getKind, String getName, FormulaType<F> getType, ImmutableList<FormulaType<?>> getArgumentTypes, T getSolverDeclaration) Creates an instance of aFunctionDeclarationImplrecord class.- Parameters:
getKind- the value for thegetKindrecord componentgetName- the value for thegetNamerecord componentgetType- the value for thegetTyperecord componentgetArgumentTypes- the value for thegetArgumentTypesrecord componentgetSolverDeclaration- the value for thegetSolverDeclarationrecord component
-
-
Method Details
-
of
public static <F extends Formula,T> FunctionDeclarationImpl<F,T> of(String name, FunctionDeclarationKind kind, List<FormulaType<?>> pArgumentTypes, FormulaType<F> pReturnType, T pDeclaration) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
getKind
Returns the value of thegetKindrecord component.- Specified by:
getKindin interfaceFunctionDeclaration<F extends Formula>- Returns:
- the value of the
getKindrecord component
-
getName
Returns the value of thegetNamerecord component.- Specified by:
getNamein interfaceFunctionDeclaration<F extends Formula>- Returns:
- the value of the
getNamerecord component
-
getType
Returns the value of thegetTyperecord component.- Specified by:
getTypein interfaceFunctionDeclaration<F extends Formula>- Returns:
- the value of the
getTyperecord component
-
getArgumentTypes
Returns the value of thegetArgumentTypesrecord component.- Specified by:
getArgumentTypesin interfaceFunctionDeclaration<F extends Formula>- Returns:
- the value of the
getArgumentTypesrecord component
-
getSolverDeclaration
Returns the value of thegetSolverDeclarationrecord component.- Returns:
- the value of the
getSolverDeclarationrecord component
-