Record Class ActionService.DelegateWrapper

java.lang.Object
java.lang.Record
ch.rswk.meta.engine.ActionService.DelegateWrapper
Enclosing class:
ActionService

private static record ActionService.DelegateWrapper(ActionService.ActionExecuteDelegate delegate, com.codahale.metrics.Meter errorMeter, com.codahale.metrics.Timer timer) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The field for the delegate record component.
    private final com.codahale.metrics.Meter
    The field for the errorMeter record component.
    private final com.codahale.metrics.Timer
    The field for the timer record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    DelegateWrapper(ActionService.ActionExecuteDelegate delegate, com.codahale.metrics.Meter errorMeter, com.codahale.metrics.Timer timer)
    Creates an instance of a DelegateWrapper record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the delegate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    com.codahale.metrics.Meter
    Returns the value of the errorMeter record component.
    final int
    Returns a hash code value for this object.
    com.codahale.metrics.Timer
    Returns the value of the timer record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • delegate

      private final ActionService.ActionExecuteDelegate delegate
      The field for the delegate record component.
    • errorMeter

      private final com.codahale.metrics.Meter errorMeter
      The field for the errorMeter record component.
    • timer

      private final com.codahale.metrics.Timer timer
      The field for the timer record component.
  • Constructor Details

    • DelegateWrapper

      private DelegateWrapper(ActionService.ActionExecuteDelegate delegate, com.codahale.metrics.Meter errorMeter, com.codahale.metrics.Timer timer)
      Creates an instance of a DelegateWrapper record class.
      Parameters:
      delegate - the value for the delegate record component
      errorMeter - the value for the errorMeter record component
      timer - the value for the timer record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • delegate

      Returns the value of the delegate record component.
      Returns:
      the value of the delegate record component
    • errorMeter

      public com.codahale.metrics.Meter errorMeter()
      Returns the value of the errorMeter record component.
      Returns:
      the value of the errorMeter record component
    • timer

      public com.codahale.metrics.Timer timer()
      Returns the value of the timer record component.
      Returns:
      the value of the timer record component