Enum LinkedPolicy.EvictionPolicy

    • Enum Constant Detail

      • CLOCK

        public static final LinkedPolicy.EvictionPolicy CLOCK
        Evicts entries based on insertion order, but gives an entry a "second chance" if it has been requested recently.
      • MRU

        public static final LinkedPolicy.EvictionPolicy MRU
        Evicts entries based on how recently they are used, with the most recent evicted first.
      • LRU

        public static final LinkedPolicy.EvictionPolicy LRU
        Evicts entries based on how recently they are used, with the least recent evicted first.
    • Method Detail

      • values

        public static LinkedPolicy.EvictionPolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LinkedPolicy.EvictionPolicy c : LinkedPolicy.EvictionPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LinkedPolicy.EvictionPolicy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • label

        public String label()