public void addBreakpoints(final BreakpointType type,final Set<BreakpointAddress> addresses){
  if (addresses.size() == 0) {
    return;
  }
switch (type) {
case REGULAR:
    addBreakpoints(enforceBreakpointHierarchy(addresses,type),BreakpointStatus.BREAKPOINT_INACTIVE,indexedBreakpointStorage,type);
  break;
case ECHO:
addBreakpoints(enforceBreakpointHierarchy(addresses,type),BreakpointStatus.BREAKPOINT_ENABLED,echoBreakpointStorage,type);
break;
case STEP:
addBreakpoints(enforceBreakpointHierarchy(addresses,type),BreakpointStatus.BREAKPOINT_INACTIVE,stepBreakpointStorage,type);
break;
default :
throw new IllegalStateException(String.format("Invalid breakpoint type '%s'",type));
}
}

public void addBreakpoints ( final BreakpointType type , final Set < BreakpointAddress > addresses ) { if ( addresses . size ( ) == 0 ) { return ; } switch ( type ) { case REGULAR : addBreakpoints ( enforceBreakpointHierarchy ( addresses , type ) , BreakpointStatus . BREAKPOINT_INACTIVE , indexedBreakpointStorage , type ) ; break ; case ECHO : addBreakpoints ( enforceBreakpointHierarchy ( addresses , type ) , BreakpointStatus . BREAKPOINT_ENABLED , echoBreakpointStorage , type ) ; break ; case STEP : addBreakpoints ( enforceBreakpointHierarchy ( addresses , type ) , BreakpointStatus . BREAKPOINT_INACTIVE , stepBreakpointStorage , type ) ; break ; default : throw new IllegalStateException ( String . format ( "Invalid breakpoint type '%s'" , type ) ) ; } }
adds a list of breakpoints to the breakpoint manager .
