private void checkAddress(Address address) { assert address.getId() >0 : address; assert address.getCountry() != null : address; } }
private void checkAddress(Address address) { assertNotNull(address.getId()); assertNotNull(address.getCountry()); } }
private void checkAddress(Address address) { assert address.getId() > 0 : address; assert address.getCountry() != null : address; if (!ImmutableSet.of("SG", "NL").contains(address.getCountry())) assert address.getState() != null : address; }
public T fromAddress(Address in) { return this .id(in.getId()) .country(in.getCountry()) .state(in.getState()) .description(in.getDescription()); } }
public T fromAddress(Address in) { return this .id(in.getId()) .country(in.getCountry()) .state(in.getState()) .description(in.getDescription()); } }
public T fromAddress(Address in) { return this .id(in.getId()) .country(in.getCountry()) .state(in.getState()) .description(in.getDescription()) .accountId(in.getAccountId()) .address(in.getAddress1()) .city(in.getCity()) .contactName(in.getContactName()) .isActive(in.isActive()) .locationId(in.getLocationId()) .postalCode(in.getPostalCode()); } }
public T fromAddress(Address in) { return this .id(in.getId()) .country(in.getCountry()) .state(in.getState()) .description(in.getDescription()) .accountId(in.getAccountId()) .address(in.getAddress1()) .city(in.getCity()) .contactName(in.getContactName()) .isActive(in.isActive()) .locationId(in.getLocationId()) .postalCode(in.getPostalCode()); } }
public T fromAddress(Address in) { return this .id(in.getId()) .country(in.getCountry()) .state(in.getState()) .description(in.getDescription()) .accountId(in.getAccountId()) .address(in.getAddress1()) .city(in.getCity()) .contactName(in.getContactName()) .isActive(in.isActive()) .locationId(in.getLocationId()) .postalCode(in.getPostalCode()); } }
public T fromAddress(Address in) { return this .id(in.getId()) .country(in.getCountry()) .state(in.getState()) .description(in.getDescription()) .accountId(in.getAccountId()) .address(in.getAddress1()) .city(in.getCity()) .contactName(in.getContactName()) .isActive(in.isActive()) .locationId(in.getLocationId()) .postalCode(in.getPostalCode()); } }