Enum LocalCache.EntryFactory

    • Constructor Detail

      • EntryFactory

        private EntryFactory()
    • Method Detail

      • values

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

        public static LocalCache.EntryFactory valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • newEntry

        abstract <K,​V> ReferenceEntry<K,​V> newEntry​(LocalCache.Segment<K,​V> segment,
                                                                K key,
                                                                int hash,
                                                                ReferenceEntry<K,​V> next)
        Creates a new entry.
        Parameters:
        segment - to create the entry for
        key - of the entry
        hash - of the key
        next - entry in the same bucket