示例#1
0
 public EquipmentXml getPort(String shelf, String slot, String port) {
   for (EquipmentXml aPort : getPorts()) {
     if (aPort.getShelf().equals(shelf)
         && aPort.getSlot().equals(slot)
         && aPort.getPort().equals(port)) {
       return aPort;
     }
   }
   return null;
 }