mirror of
https://github.com/google/nomulus
synced 2026-02-11 07:11:40 +00:00
Test that update works for every field in RegistrarSettings
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=192348329
This commit is contained in:
@@ -94,9 +94,21 @@ public class Address extends ImmutableObject implements Jsonifiable {
|
||||
.build();
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public Builder<? extends Address> asBuilder() {
|
||||
return new Builder<>(clone(this));
|
||||
}
|
||||
|
||||
/** A builder for constructing {@link Address}. */
|
||||
@VisibleForTesting
|
||||
public static class Builder<T extends Address> extends Buildable.Builder<T> {
|
||||
|
||||
public Builder() {}
|
||||
|
||||
protected Builder(T instance) {
|
||||
super(instance);
|
||||
}
|
||||
|
||||
public Builder<T> setStreet(ImmutableList<String> street) {
|
||||
checkArgument(
|
||||
street == null || (!street.isEmpty() && street.size() <= 3),
|
||||
|
||||
Reference in New Issue
Block a user