Class ParametersKey

java.lang.Object
io.micronaut.cache.interceptor.ParametersKey
All Implemented Interfaces:
Serializable

public class ParametersKey extends Object implements Serializable
A key that uses the parameters of a method.
Since:
1.0
Author:
Graeme Rocher
See Also:
  • Field Details

    • ZERO_ARG_KEY

      public static final ParametersKey ZERO_ARG_KEY
    • EMPTY_OBJECT_ARRAY_HASH_CODE

      public static final int EMPTY_OBJECT_ARRAY_HASH_CODE
  • Constructor Details

    • ParametersKey

      public ParametersKey(Object... params)
      Parameters:
      params - Parameters of the method
  • Method Details

    • getParameters

      public Object[] getParameters()
      Returns:
      A defensive copy of the parameters used to build this key
      Since:
      6.2.0
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object