Class ClassFieldsAndMethodsCache<K extends Class,V extends org.apache.commons.lang3.tuple.Pair<List<Field>,List<Method>>>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- hu.icellmobilsoft.coffee.model.base.ClassFieldsAndMethodsCache<K,V>
-
- Type Parameters:
K- the type of keys maintained by this mapV- the type of mapped values
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,V>
public class ClassFieldsAndMethodsCache<K extends Class,V extends org.apache.commons.lang3.tuple.Pair<List<Field>,List<Method>>> extends LinkedHashMap<K,V>
Cache for fields and methods of entity classes used inAbstractProvider- Since:
- 2.0.0
- Author:
- zsolt.vasi
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ClassFieldsAndMethodsCache()Instantiates a new class fields and methods cacheClassFieldsAndMethodsCache(int cacheSize)Instantiates a new class fields and methods with the given cache size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.lang3.tuple.Pair<List<Field>,List<Method>>getFieldsAndMethods(Class<?> clazz)Gets a pair of fields and methods lists of the given class from cache if foundprotected booleanremoveEldestEntry(Map.Entry<K,V> eldest)-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Constructor Detail
-
ClassFieldsAndMethodsCache
public ClassFieldsAndMethodsCache()
Instantiates a new class fields and methods cache
-
ClassFieldsAndMethodsCache
public ClassFieldsAndMethodsCache(int cacheSize)
Instantiates a new class fields and methods with the given cache size- Parameters:
cacheSize- the cache size
-
-