public static GsonBuilder registerAll(GsonBuilder gsonBuilder) {
        registerInstant(gsonBuilder);
        registerLocalDate(gsonBuilder);
        registerLocalDateTime(gsonBuilder);
        registerLocalTime(gsonBuilder);
        registerLocalDate(gsonBuilder);
        registerOffsetDateTime(gsonBuilder);
        registerOffsetTime(gsonBuilder);
        registerZonedDateTime(gsonBuilder);

        return gsonBuilder;
    }
public static GsonBuilder registerAll ( GsonBuilder gsonBuilder ) { registerInstant ( gsonBuilder ) ; registerLocalDate ( gsonBuilder ) ; registerLocalDateTime ( gsonBuilder ) ; registerLocalTime ( gsonBuilder ) ; registerLocalDate ( gsonBuilder ) ; registerOffsetDateTime ( gsonBuilder ) ; registerOffsetTime ( gsonBuilder ) ; registerZonedDateTime ( gsonBuilder ) ; return gsonBuilder ; }
A convenient method to register all supported ThreeTen BP types.
@param gsonBuilder a GsonBuilder to be registered.
@return a GsonBuilder knows how to de/serialize all supported ThreeTen BP types.