Class StringMapImpl

    • Constructor Detail

      • StringMapImpl

        public StringMapImpl()
      • StringMapImpl

        public StringMapImpl​(int initialSize,
                             float factor)
    • Method Detail

      • get

        public <T> T get​(Class<T> key)
        Description copied from interface: StringMap
        Convenience method for storing/retrieving typed objects from the map. equivalent to: (T)get(key.getName());
        Specified by:
        get in interface StringMap
        Parameters:
        key - the key
        Returns:
        the value
      • put

        public <T> void put​(Class<T> key,
                            T value)
        Description copied from interface: StringMap
        Convenience method for storing/retrieving typed objects from the map. equivalent to: put(key.getName(), value);
        Specified by:
        put in interface StringMap
        Parameters:
        key - the key
        value - the value
      • remove

        public <T> T remove​(Class<T> key)
        Description copied from interface: StringMap
        Convenience method for removing typed objects from the map. equivalent to: (T)remove(key.getName());
        Specified by:
        remove in interface StringMap
        Parameters:
        key - the key