Beispiel #1
0
 private void initializeMaterials(Set<Material> materials) {
     for (Material each: materials) {
         each.getDescription();
         if (each.getUnitType() != null) {
             each.getUnitType().getMeasure();
         }
     }
 }
Beispiel #2
0
 private String asStringForUser(Material material) {
     return String.format("{code: %s, description: %s}", material.getCode(),
             material
             .getDescription());
 }