Class KeyMapper

  • All Implemented Interfaces:
    java.io.Serializable

    public class KeyMapper
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyMapper​(java.lang.String prefix)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String key)
      Retrieves object with the key.
      java.lang.String key​(java.lang.Object o)
      Gets key for an object.
      void remove​(java.lang.Object removeobj)
      Removes object from the mapper.
      void removeAll()
      Removes all objects from the mapper.
      • Methods inherited from class java.lang.Object

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

      • KeyMapper

        public KeyMapper​(java.lang.String prefix)
    • Method Detail

      • key

        public java.lang.String key​(java.lang.Object o)
        Gets key for an object.
        Parameters:
        o - the object.
      • get

        public java.lang.Object get​(java.lang.String key)
        Retrieves object with the key.
        Parameters:
        key - the name with the desired value.
        Returns:
        the object with the key.
      • remove

        public void remove​(java.lang.Object removeobj)
        Removes object from the mapper.
        Parameters:
        removeobj - the object to be removed.
      • removeAll

        public void removeAll()
        Removes all objects from the mapper.