private void compactGroup(List<Segment> segments,List<OffsetPredicate> predicates,Segment compactSegment){
  for (int i=0; i < segments.size(); i++) {
    compactSegment(segments.get(i),predicates.get(i),compactSegment);
  }
}

private void compactGroup ( List < Segment > segments , List < OffsetPredicate > predicates , Segment compactSegment ) { for ( int i = 0 ; i < segments . size ( ) ; i ++ ) { compactSegment ( segments . get ( i ) , predicates . get ( i ) , compactSegment ) ; } }
compacts segments in a group sequentially .
