Class SortedMap


  • class SortedMap
    extends java.lang.Object
    Class representing a reduced sorted map (key / value). This class is not compatible with the Map interface
    • Constructor Summary

      Constructors 
      Constructor Description
      SortedMap()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String add​(java.lang.String key, java.lang.String value)
      Method to add a key value pair
      java.util.List<java.lang.String> getKeys()
      Gets the keys of the map as list
      int size()
      Gets the size of the map
      • Methods inherited from class java.lang.Object

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

      • SortedMap

        public SortedMap()
        Default constructor
    • Method Detail

      • add

        public java.lang.String add​(java.lang.String key,
                                    java.lang.String value)
        Method to add a key value pair
        Parameters:
        key - key as string
        value - value as string
        Returns:
        returns the resolved string (either added or returned from an existing entry)
      • getKeys

        public java.util.List<java.lang.String> getKeys()
        Gets the keys of the map as list
        Returns:
        ArrayList of Keys
      • size

        public int size()
        Gets the size of the map
        Returns:
        Number of entries in the map