private void validate() {

    if ((this.segments.length < 0) && (!this.snapshot)) {
      throw new IllegalArgumentException("segments.length:" + Integer.valueOf(this.segments.length));
    }
    for (int i = 0; i < this.segments.length; i++) {
      if (this.segments[i] < 0) {
        throw new IllegalArgumentException("segments[" + i + "]:" + Integer.valueOf(this.segments[i]));
      }
    }
    if (this.phaseNumber != null) {
      if (this.phaseNumber.intValue() < 0) {
        throw new IllegalArgumentException("phaseNumber:" + this.phaseNumber);
      }
      if (this.phase == null) {
        throw new IllegalArgumentException("phaseNumber (phase==null):" + this.phaseNumber);
      }
      if ((this.phase == DevelopmentPhase.RELEASE) && (this.phaseNumber.intValue() != 0)) {
        throw new IllegalArgumentException("phaseNumber (phase==RELEASE):" + this.phaseNumber);
      }
    }
  }
private void validate ( ) { if ( ( this . segments . length < 0 ) && ( ! this . snapshot ) ) { throw new IllegalArgumentException ( "segments.length:" + Integer . valueOf ( this . segments . length ) ) ; } for ( int i = 0 ; i < this . segments . length ; i ++ ) { if ( this . segments [ i ] < 0 ) { throw new IllegalArgumentException ( "segments[" + i + "]:" + Integer . valueOf ( this . segments [ i ] ) ) ; } } if ( this . phaseNumber != null ) { if ( this . phaseNumber . intValue ( ) < 0 ) { throw new IllegalArgumentException ( "phaseNumber:" + this . phaseNumber ) ; } if ( this . phase == null ) { throw new IllegalArgumentException ( "phaseNumber (phase==null):" + this . phaseNumber ) ; } if ( ( this . phase == DevelopmentPhase . RELEASE ) && ( this . phaseNumber . intValue ( ) != 0 ) ) { throw new IllegalArgumentException ( "phaseNumber (phase==RELEASE):" + this . phaseNumber ) ; } } }
This method validates the consistency of this version identifier.