Enum LocalCache.NullEntry

    • Constructor Detail

      • NullEntry

        private NullEntry()
    • Method Detail

      • values

        public static LocalCache.NullEntry[] 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.NullEntry c : LocalCache.NullEntry.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.NullEntry 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
      • getNext

        public ReferenceEntry<java.lang.Object,​java.lang.Object> getNext()
        Description copied from interface: ReferenceEntry
        Returns the next entry in the chain.
        Specified by:
        getNext in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • getHash

        public int getHash()
        Description copied from interface: ReferenceEntry
        Returns the entry's hash.
        Specified by:
        getHash in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • getKey

        public java.lang.Object getKey()
        Description copied from interface: ReferenceEntry
        Returns the key for this entry.
        Specified by:
        getKey in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • getAccessTime

        public long getAccessTime()
        Description copied from interface: ReferenceEntry
        Returns the time that this entry was last accessed, in ns.
        Specified by:
        getAccessTime in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • setAccessTime

        public void setAccessTime​(long time)
        Description copied from interface: ReferenceEntry
        Sets the entry access time in ns.
        Specified by:
        setAccessTime in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • setNextInAccessQueue

        public void setNextInAccessQueue​(ReferenceEntry<java.lang.Object,​java.lang.Object> next)
        Description copied from interface: ReferenceEntry
        Sets the next entry in the access queue.
        Specified by:
        setNextInAccessQueue in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • setPreviousInAccessQueue

        public void setPreviousInAccessQueue​(ReferenceEntry<java.lang.Object,​java.lang.Object> previous)
        Description copied from interface: ReferenceEntry
        Sets the previous entry in the access queue.
        Specified by:
        setPreviousInAccessQueue in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • getWriteTime

        public long getWriteTime()
        Specified by:
        getWriteTime in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • setWriteTime

        public void setWriteTime​(long time)
        Description copied from interface: ReferenceEntry
        Sets the entry write time in ns.
        Specified by:
        setWriteTime in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • setNextInWriteQueue

        public void setNextInWriteQueue​(ReferenceEntry<java.lang.Object,​java.lang.Object> next)
        Description copied from interface: ReferenceEntry
        Sets the next entry in the write queue.
        Specified by:
        setNextInWriteQueue in interface ReferenceEntry<java.lang.Object,​java.lang.Object>
      • setPreviousInWriteQueue

        public void setPreviousInWriteQueue​(ReferenceEntry<java.lang.Object,​java.lang.Object> previous)
        Description copied from interface: ReferenceEntry
        Sets the previous entry in the write queue.
        Specified by:
        setPreviousInWriteQueue in interface ReferenceEntry<java.lang.Object,​java.lang.Object>