Enum BoundedDeque.EvictPolicy

    • Enum Constant Detail

      • EVICT_OLDEST

        public static final BoundedDeque.EvictPolicy EVICT_OLDEST
        Evict the oldest element, i.e., the one at the head of the queue/bottom of the stack.
      • EVICT_NEWEST

        public static final BoundedDeque.EvictPolicy EVICT_NEWEST
        Evict the newest element, that is already *in* the queue (i.e., in any case inserts the new element).
    • Method Detail

      • values

        public static BoundedDeque.EvictPolicy[] 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 (BoundedDeque.EvictPolicy c : BoundedDeque.EvictPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BoundedDeque.EvictPolicy 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