Class AnnotatedMethodMap
- java.lang.Object
-
- org.codehaus.jackson.map.introspect.AnnotatedMethodMap
-
- All Implemented Interfaces:
Iterable<AnnotatedMethod>
public final class AnnotatedMethodMap extends Object implements Iterable<AnnotatedMethod>
Simple helper class used to keep track of collection ofAnnotatedMethods, accessible by lookup. Lookup is usually needed for augmenting and overriding annotations.
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkedHashMap<MemberKey,AnnotatedMethod>_methods
-
Constructor Summary
Constructors Constructor Description AnnotatedMethodMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(AnnotatedMethod am)Method called to add specified annotated method in the Map.AnnotatedMethodfind(Method m)AnnotatedMethodfind(String name, Class<?>[] paramTypes)booleanisEmpty()Iterator<AnnotatedMethod>iterator()AnnotatedMethodremove(Method m)AnnotatedMethodremove(AnnotatedMethod am)Method called to remove specified method, assuming it exists in the Mapintsize()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
_methods
protected LinkedHashMap<MemberKey,AnnotatedMethod> _methods
-
-
Method Detail
-
add
public void add(AnnotatedMethod am)
Method called to add specified annotated method in the Map.
-
remove
public AnnotatedMethod remove(AnnotatedMethod am)
Method called to remove specified method, assuming it exists in the Map
-
remove
public AnnotatedMethod remove(Method m)
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
find
public AnnotatedMethod find(String name, Class<?>[] paramTypes)
-
find
public AnnotatedMethod find(Method m)
-
iterator
public Iterator<AnnotatedMethod> iterator()
- Specified by:
iteratorin interfaceIterable<AnnotatedMethod>
-
-