Class JodaBeanSimpleMapReader


  • public class JodaBeanSimpleMapReader
    extends java.lang.Object
    Provides the ability for a Joda-Bean to read from a JSON-like in memory Map.

    The format is defined by JodaBeanSimpleMapWriter.

    This class contains mutable state and cannot be used from multiple threads. A new instance must be created for each message.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T read​(java.util.Map<java.lang.String,​java.lang.Object> input, java.lang.Class<T> rootType)
      Reads and parses to a bean.
      • Methods inherited from class java.lang.Object

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

      • JodaBeanSimpleMapReader

        public JodaBeanSimpleMapReader​(JodaBeanSer settings)
        Creates an instance.
        Parameters:
        settings - the settings, not null
    • Method Detail

      • read

        public <T> T read​(java.util.Map<java.lang.String,​java.lang.Object> input,
                          java.lang.Class<T> rootType)
        Reads and parses to a bean.
        Type Parameters:
        T - the root type
        Parameters:
        input - the map input, not null
        rootType - the root type, not null
        Returns:
        the bean, not null