public IDomainAdaptor merge(IDomainAdaptor adaptor) { IntRangeDomainAdaptor a = (IntRangeDomainAdaptor) adaptor; int min1 = irange.getMin(); int max1 = irange.getMax(); int min2 = a.irange.getMin(); int max2 = a.irange.getMax(); int min = min1 < min2 ? min1 : min2; int max = max1 > max2 ? max1 : max2; return new IntRangeDomainAdaptor(new IntRangeDomain(min, max)); }
public int getMin() { return irange.getMin(); }