public LocationTag( LocationIntervalTag from, LocationIntervalTag to ) { if ( from == null ) { throw new IllegalArgumentException( "From interval must not be null." ); } if ( to == null ) { throw new IllegalArgumentException( "To interval must not be null." ); } // ............***.... From // .....***........... To if ( from.getStart() > to.getEnd() ) { throw new IllegalArgumentException( "From lower bound (" + from.getStart() + ") greater than the To upper bound (" + to.getEnd() + ")." ); } this.fromIntervalStart = from.getStart(); this.fromIntervalEnd = from.getEnd(); this.toIntervalStart = to.getStart(); this.toIntervalEnd = to.getEnd(); }
public LocationTag( LocationIntervalTag from, LocationIntervalTag to ) { if ( from == null ) { throw new IllegalArgumentException( "From interval must not be null." ); } if ( to == null ) { throw new IllegalArgumentException( "To interval must not be null." ); } // ............***.... From // .....***........... To if ( from.getStart() > to.getEnd() ) { throw new IllegalArgumentException( "From lower bound (" + from.getStart() + ") greater than the To upper bound (" + to.getEnd() + ")." ); } this.fromIntervalStart = from.getStart(); this.fromIntervalEnd = from.getEnd(); this.toIntervalStart = to.getStart(); this.toIntervalEnd = to.getEnd(); }
public LocationTag( LocationIntervalTag from, LocationIntervalTag to ) { if ( from == null ) { throw new IllegalArgumentException( "From interval must not be null." ); } if ( to == null ) { throw new IllegalArgumentException( "To interval must not be null." ); } // ............***.... From // .....***........... To if ( from.getStart() > to.getEnd() ) { throw new IllegalArgumentException( "From lower bound (" + from.getStart() + ") greater than the To upper bound (" + to.getEnd() + ")." ); } this.fromIntervalStart = from.getStart(); this.fromIntervalEnd = from.getEnd(); this.toIntervalStart = to.getStart(); this.toIntervalEnd = to.getEnd(); }