コード例 #1
0
 public Address copy() {
   Address copy = new Address();
   copy.id = this.id;
   copy.street = this.street;
   copy.city = this.city;
   copy.province = this.province;
   copy.country = this.country;
   copy.postalCode = this.postalCode;
   return copy;
 }
コード例 #2
0
ファイル: Address.java プロジェクト: mrroot/hapi-fhir
 public Address copy() {
   Address dst = new Address();
   copyValues(dst);
   dst.use = use == null ? null : use.copy();
   dst.text = text == null ? null : text.copy();
   if (line != null) {
     dst.line = new ArrayList<StringType>();
     for (StringType i : line) dst.line.add(i.copy());
   }
   ;
   dst.city = city == null ? null : city.copy();
   dst.state = state == null ? null : state.copy();
   dst.postalCode = postalCode == null ? null : postalCode.copy();
   dst.country = country == null ? null : country.copy();
   dst.period = period == null ? null : period.copy();
   return dst;
 }