Package com.backblaze.b2.json
Class B2JsonUnionTypeMap.Builder
- java.lang.Object
-
- com.backblaze.b2.json.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.
-
-
-
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.
-
build
public B2JsonUnionTypeMap build()
Builds the B2JsonUnionTypeMap.
-
-