Class SecurePackageResourceGuard.SimpleCache

  • All Implemented Interfaces:
    java.io.Serializable, java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Boolean>, java.util.Map<java.lang.String,​java.lang.Boolean>
    Enclosing class:
    SecurePackageResourceGuard

    public static class SecurePackageResourceGuard.SimpleCache
    extends java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.lang.Boolean>
    A very simple cache
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap

        java.util.concurrent.ConcurrentHashMap.KeySetView<K extends java.lang.Object,​V extends java.lang.Object>
      • 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>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleCache​(int maxSize)
      Construct.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean put​(java.lang.String key, java.lang.Boolean value)  
      • Methods inherited from class java.util.concurrent.ConcurrentHashMap

        clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
      • Methods inherited from class java.util.AbstractMap

        clone
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleCache

        public SimpleCache​(int maxSize)
        Construct.
        Parameters:
        maxSize -
    • Method Detail

      • put

        public java.lang.Boolean put​(java.lang.String key,
                                     java.lang.Boolean value)
        Specified by:
        put in interface java.util.Map<java.lang.String,​java.lang.Boolean>
        Overrides:
        put in class java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.lang.Boolean>
        See Also:
        ConcurrentHashMap.put(java.lang.Object, java.lang.Object)