Class LRUMapMultiKey

java.lang.Object
java.util.AbstractMap<K,​V>
java.util.HashMap<K,​V>
java.util.LinkedHashMap<LRUMapMultiKey.Key,​java.lang.Object>
org.nuiton.util.LRUMapMultiKey
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<LRUMapMultiKey.Key,​java.lang.Object>

public class LRUMapMultiKey
extends java.util.LinkedHashMap<LRUMapMultiKey.Key,​java.lang.Object>
Created: 23 mai 2006 04:08:03
Author:
Benjamin Poussin - poussin@codelutin.com
See Also:
Serialized Form
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  LRUMapMultiKey.Key  

    Nested classes/interfaces inherited from class java.util.AbstractMap

    java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.util.Map<java.lang.Object,​java.util.Set<LRUMapMultiKey.Key>> keys  
    protected int maxSize  
  • Constructor Summary

    Constructors 
    Constructor Description
    LRUMapMultiKey​(int maxSize)  
  • Method Summary

    Modifier and Type Method Description
    void clear()  
    LRUMapMultiKey.Key createKey​(java.lang.Object... k)  
    java.lang.Object put​(LRUMapMultiKey.Key key, java.lang.Object value)  
    java.lang.Object remove​(java.lang.Object k)  
    protected boolean removeEldestEntry​(java.util.Map.Entry<LRUMapMultiKey.Key,​java.lang.Object> eldest)  

    Methods inherited from class java.util.LinkedHashMap

    containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values

    Methods inherited from class java.util.HashMap

    clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, 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, putAll, putIfAbsent, remove, replace, replace, size