Class MapToDictionary


  • public class MapToDictionary
    extends java.util.Dictionary
    This is a simple class that implements a Dictionary from a Map. The resulting dictionary is immutable.
    • Constructor Summary

      Constructors 
      Constructor Description
      MapToDictionary​(java.util.Map map)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Enumeration elements()  
      java.lang.Object get​(java.lang.Object key)  
      boolean isEmpty()  
      java.util.Enumeration keys()  
      java.lang.Object put​(java.lang.Object key, java.lang.Object value)  
      java.lang.Object remove​(java.lang.Object key)  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • MapToDictionary

        public MapToDictionary​(java.util.Map map)
    • Method Detail

      • elements

        public java.util.Enumeration elements()
        Specified by:
        elements in class java.util.Dictionary
      • get

        public java.lang.Object get​(java.lang.Object key)
        Specified by:
        get in class java.util.Dictionary
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class java.util.Dictionary
      • keys

        public java.util.Enumeration keys()
        Specified by:
        keys in class java.util.Dictionary
      • put

        public java.lang.Object put​(java.lang.Object key,
                                    java.lang.Object value)
        Specified by:
        put in class java.util.Dictionary
      • remove

        public java.lang.Object remove​(java.lang.Object key)
        Specified by:
        remove in class java.util.Dictionary
      • size

        public int size()
        Specified by:
        size in class java.util.Dictionary
      • toString

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