Beispiel #1
0
 public T fromDatacenter(Datacenter in) {
   return this.id(in.getId())
       .name(in.getName())
       .longName(in.getLongName())
       .locationAddress(in.getLocationAddress())
       .regions(in.getRegions());
 }
 private void checkDatacenter(Datacenter dc) {
   assert dc.getId() > 0 : dc;
   assert dc.getName() != null : dc;
   assert dc.getLongName() != null : dc;
   for (Region region : dc.getRegions()) checkRegion(region);
 }