public SegmentBlock(long... delimiter) throws IllegalArgumentException {
  if (delimiter.length == 0)   throw new IllegalArgumentException();
  for (int i=0; i < delimiter.length - 1; i++)   if (delimiter[i] > delimiter[i + 1])   throw new IllegalArgumentException("Segment " + (i + 1) + " is inconsistent as it starts after the next one: "+ Arrays.toString(delimiter));
  this.delimiter=delimiter;
  this.currSegment=-1;
}

public SegmentBlock ( long ... delimiter ) throws IllegalArgumentException { if ( delimiter . length == 0 ) throw new IllegalArgumentException ( ) ; for ( int i = 0 ; i < delimiter . length - 1 ; i ++ ) if ( delimiter [ i ] > delimiter [ i + 1 ] ) throw new IllegalArgumentException ( "Segment " + ( i + 1 ) + " is inconsistent as it starts after the next one: " + Arrays . toString ( delimiter ) ) ; this . delimiter = delimiter ; this . currSegment = - 1 ; }
creates a new block with given delimiters .
