Class WeakHashtable.Entry

  • All Implemented Interfaces:
    java.util.Map.Entry
    Enclosing class:
    WeakHashtable

    private static final class WeakHashtable.Entry
    extends java.lang.Object
    implements java.util.Map.Entry
    Entry implementation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object key  
      private java.lang.Object value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Entry​(java.lang.Object key, java.lang.Object value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.Object getKey()  
      java.lang.Object getValue()  
      int hashCode()  
      java.lang.Object setValue​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • key

        private final java.lang.Object key
      • value

        private final java.lang.Object value
    • Constructor Detail

      • Entry

        private Entry​(java.lang.Object key,
                      java.lang.Object value)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Map.Entry
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map.Entry
        Overrides:
        hashCode in class java.lang.Object
      • setValue

        public java.lang.Object setValue​(java.lang.Object value)
        Specified by:
        setValue in interface java.util.Map.Entry
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface java.util.Map.Entry
      • getKey

        public java.lang.Object getKey()
        Specified by:
        getKey in interface java.util.Map.Entry