public void add(SubRange newRange){
  if (newRange == null) {
    return;
  }
  for (  SubRange range : data) {
    if (range.inRange(newRange)) {
      return;
    }
  }
  data.add(newRange);
}

public void add ( SubRange newRange ) { if ( newRange == null ) { return ; } for ( SubRange range : data ) { if ( range . inRange ( newRange ) ) { return ; } } data . add ( newRange ) ; }
add a new sub range
