static void registerAdapterClass ( Class < ? > clazz ) { Objects . requireNonNull ( clazz , "Adapter class cannot be null" ) ; TypeAdapter . ADAPTER_CLASSES . addIfAbsent ( clazz ) ; }
Register a new adapter class .