Enum ExpungePolicy

    • Enum Constant Detail

      • EXPUNGE_EARLIEST

        public static final ExpungePolicy EXPUNGE_EARLIEST
        Expunge the span before the first transition.

        Note that if we add data to the map in reverse chronological order, then entries exceeding capacity are expunged as soon as we attempt to add them, so this policy should probably not be used in reverse chronological order.

      • EXPUNGE_LATEST

        public static final ExpungePolicy EXPUNGE_LATEST
        Expunge the span after the latest transition.

        Note that if we add data to the map in chronological order, then entries exceeding capacity are expunged as soon as we attempt to add them, so this policy should probably not be used in chronological order.

      • EXPUNGE_FARTHEST

        public static final ExpungePolicy EXPUNGE_FARTHEST
        Expunge either the earliest or latest span, depending on which is farthest from the last added transition.
    • Method Detail

      • values

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

        public static ExpungePolicy 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