Class MapEntry


  • public class MapEntry
    extends java.lang.Object
    This is a simple class that will contain a key and a value.
    Version:
    $Revision: 1.3 $
    Author:
    Ben Litchfield
    • Constructor Summary

      Constructors 
      Constructor Description
      MapEntry()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getKey()
      Get the key for this entry.
      java.lang.Object getValue()
      This will get the value for this entry.
      void setKey​(java.lang.Object k)
      This will set the key for this entry.
      void setValue​(java.lang.Object val)
      This will set the value for this entry.
      java.lang.String toString()
      This will output a string representation of this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MapEntry

        public MapEntry()
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        Get the key for this entry.
        Returns:
        The entry's key.
      • setKey

        public void setKey​(java.lang.Object k)
        This will set the key for this entry.
        Parameters:
        k - the new key for this entry.
      • getValue

        public java.lang.Object getValue()
        This will get the value for this entry.
        Returns:
        The value for this entry.
      • setValue

        public void setValue​(java.lang.Object val)
        This will set the value for this entry.
        Parameters:
        val - the new value for this entry.
      • toString

        public java.lang.String toString()
        This will output a string representation of this class.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this class.