Class B2JsonUnionTypeMap.Builder

  • Enclosing class:
    B2JsonUnionTypeMap

    public static class B2JsonUnionTypeMap.Builder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      B2JsonUnionTypeMap build()
      Builds the B2JsonUnionTypeMap.
      B2JsonUnionTypeMap.Builder put​(java.lang.String typeName, java.lang.Class<?> typeClass)
      Adds a new type to the map being built.
      • Methods inherited from class java.lang.Object

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

      • put

        public B2JsonUnionTypeMap.Builder put​(java.lang.String typeName,
                                              java.lang.Class<?> typeClass)
                                       throws B2JsonException
        Adds a new type to the map being built.
        Parameters:
        typeName - The name used for this type in JSON.
        typeClass - The class used in Java.
        Throws:
        B2JsonException - When adding duplicate names or classes to the map.