Class AnnotatedElementKey
- java.lang.Object
- org.springframework.context.expression.AnnotatedElementKey
- All Implemented Interfaces:
Comparable<AnnotatedElementKey>
public final class AnnotatedElementKey extends Object implements Comparable<AnnotatedElementKey>
Represent anAnnotatedElement
on a particularClass
and is suitable as a key.- Since:
- 4.2
- Author:
- Costin Leau, Stephane Nicoll
- See Also:
CachedExpressionEvaluator
Constructor Summary
Constructors Constructor Description AnnotatedElementKey(AnnotatedElement element, Class<?> targetClass)
Create a new instance with the specifiedAnnotatedElement
and optional targetClass
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AnnotatedElementKey other)
boolean
equals(Object other)
int
hashCode()
String
toString()
Constructor Detail
AnnotatedElementKey
public AnnotatedElementKey(AnnotatedElement element, Class<?> targetClass)
Create a new instance with the specifiedAnnotatedElement
and optional targetClass
.
Method Detail
compareTo
public int compareTo(AnnotatedElementKey other)
- Specified by:
compareTo
in interfaceComparable<AnnotatedElementKey>