Class MapEntry

  • All Implemented Interfaces:
    java.util.Map.Entry

    public class MapEntry
    extends java.lang.Object
    implements java.util.Map.Entry
    A simple Map.Entry implementation that can be used for Map extension
    Version:
    $Id: MapEntry.java,v 1.3 2005/04/26 17:41:48 thlee Exp $ $Name: $
    Author:
    TiongHiang Lee (thlee@onemindsoft.org)
    • Field Summary

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

      Constructors 
      Constructor Description
      MapEntry​(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 java.lang.Object _key
        the key *
      • _value

        private java.lang.Object _value
        the value *
    • Constructor Detail

      • MapEntry

        public MapEntry​(java.lang.Object key,
                        java.lang.Object value)
    • 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
      • hashCode

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

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