Package org.apache.groovy.contracts.generation

# Class ContractExecutionTracker.ContractExecution

java.lang.Object
org.apache.groovy.contracts.generation.ContractExecutionTracker.ContractExecution

Enclosing class:
  ContractExecutionTracker

public static final class ContractExecutionTracker.ContractExecution extends Object
Identifies one contract execution so recursive re-entry can be suppressed.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContractExecution(String className, String methodIdentifier, String assertionType, boolean isStatic)`
  Creates a contract execution identifier.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object o)`
  Compares two execution identifiers for logical equality.
  `int`
  `hashCode()`
  Returns the hash code for this execution identifier.

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ContractExecution

    public ContractExecution(String className, String methodIdentifier, String assertionType, boolean isStatic)
    Creates a contract execution identifier.
    Parameters:
      `className` - the declaring class name
      `methodIdentifier` - the executable identifier
      `assertionType` - the logical contract kind
      `isStatic` - whether the executable is static

- ## Method Details

  - ### equals

    public boolean equals(Object o)
    Compares two execution identifiers for logical equality.
    Overrides:
      `equals` in class `Object`
    Parameters:
      `o` - the object to compare against
    Returns:
      `true` if both identifiers describe the same execution

  - ### hashCode

    public int hashCode()
    Returns the hash code for this execution identifier.
    Overrides:
      `hashCode` in class `Object`
    Returns:
      the hash code