public static GsonBuilder registerLocalDateTime(GsonBuilder builder)
  {
    if (builder == null) { throw new NullPointerException("builder cannot be null"); }

    builder.registerTypeAdapter(LOCAL_DATE_TIME_TYPE, new LocalDateTimeConverter());

    return builder;
  }
public static GsonBuilder registerLocalDateTime ( GsonBuilder builder ) { if ( builder == null ) { throw new NullPointerException ( "builder cannot be null" ) ; } builder . registerTypeAdapter ( LOCAL_DATE_TIME_TYPE , new LocalDateTimeConverter ( ) ) ; return builder ; }
Registers the {@link LocalDateTime} converter.
@param builder The GSON builder to register the converter with.
@return A reference to {@code builder}.