/** * @param other * @param convert * if true the intervals and singlevalues of this instance will be converted to the type of the given * axis subset if their names match and if this type is unknown (void). * @return true if this {@link AxisSubset} matches the given AxisSubset, e.g. if the names are equal and the axis * values have matching parameters in the given one. */ public boolean match( AxisSubset other, boolean convert ) { boolean result = other.getName().equalsIgnoreCase( name ); if ( result ) { if ( this.type == ValueType.Void && convert ) { convertTypes( other.getType() ); } boolean ic = checkIntervals( other.getIntervals() ); boolean sc = checkSingles( other.getSingleValues(), other.getIntervals() ); result = ic && sc; } return result; }