Class WeakIdentityHashMap.SimpleEntry

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

    static class WeakIdentityHashMap.SimpleEntry
    extends java.lang.Object
    implements java.util.Map.Entry
    • Field Summary

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

      Constructors 
      Constructor Description
      SimpleEntry​(java.lang.Object key, java.lang.Object value)  
      SimpleEntry​(java.util.Map.Entry e)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean eq​(java.lang.Object o1, java.lang.Object o2)  
      boolean equals​(java.lang.Object o)  
      java.lang.Object getKey()  
      java.lang.Object getValue()  
      int hashCode()  
      java.lang.Object setValue​(java.lang.Object value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • key

        java.lang.Object key
      • value

        java.lang.Object value
    • Constructor Detail

      • SimpleEntry

        public SimpleEntry​(java.lang.Object key,
                           java.lang.Object value)
      • SimpleEntry

        public SimpleEntry​(java.util.Map.Entry e)
    • Method Detail

      • getKey

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

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

        public java.lang.Object setValue​(java.lang.Object value)
        Specified by:
        setValue in interface java.util.Map.Entry
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • eq

        private static boolean eq​(java.lang.Object o1,
                                  java.lang.Object o2)