org.springframework.context.expression

Class AnnotatedElementKey

  • java.lang.Object
    • org.springframework.context.expression.AnnotatedElementKey
  • All Implemented Interfaces:
    java.lang.Comparable<AnnotatedElementKey>


    public final class AnnotatedElementKey
    extends java.lang.Object
    implements java.lang.Comparable<AnnotatedElementKey>
    Represent an AnnotatedElement on a particular Class and is suitable as a key.
    Since:
    4.2
    Author:
    Costin Leau, Stephane Nicoll
    See Also:
    CachedExpressionEvaluator
    • Constructor Summary

      Constructors 
      Constructor and Description
      AnnotatedElementKey(java.lang.reflect.AnnotatedElement element, java.lang.Class<?> targetClass)
      Create a new instance with the specified AnnotatedElement and optional target Class.
    • Constructor Detail

      • AnnotatedElementKey

        public AnnotatedElementKey(java.lang.reflect.AnnotatedElement element,
                                   @Nullable
                                   java.lang.Class<?> targetClass)
        Create a new instance with the specified AnnotatedElement and optional target Class.
    • Method Detail

      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object