@Override public String name() { return part.getName(); }
/** * This is used to add a part to the list. The order the parts are * added to the list is the iteration order. If the part has a name * that is not null then it is added to an internal map using that * name. This allows it to be accesses by name at a later time. * * @param part this is the part that is to be added to the list * * @return returns true if the list has changed due to the add */ public boolean addPart(Part part) { String name = part.getName(); if(name != null) { map.put(name, part); } return list.add(part); }
/** * This is used to add a part to the list. The order the parts are * added to the list is the iteration order. If the part has a name * that is not null then it is added to an internal map using that * name. This allows it to be accesses by name at a later time. * * @param part this is the part that is to be added to the list * * @return returns true if the list has changed due to the add */ public boolean addPart(Part part) { String name = part.getName(); if(name != null) { map.put(name, part); } return list.add(part); }
/** * This is used to add a part to the list. The order the parts are * added to the list is the iteration order. If the part has a name * that is not null then it is added to an internal map using that * name. This allows it to be accesses by name at a later time. * * @param part this is the part that is to be added to the list * * @return returns true if the list has changed due to the add */ public boolean addPart(Part part) { String name = part.getName(); if(name != null) { map.put(name, part); } return list.add(part); }
String name = part.getName();