public boolean equalsIgnoreAlias(SelectItem that) { return equalsIgnoreAlias(that, false); }
public boolean equalsIgnoreAlias(SelectItem that) { return equalsIgnoreAlias(that, false); }
@Override public int indexOf(SelectItem item) { if (item == null) { return -1; } int i = 0; for (SelectItem selectItem : _items) { if (item == selectItem) { return i; } i++; } i = 0; for (SelectItem selectItem : _items) { if (item.equalsIgnoreAlias(selectItem, true)) { return i; } i++; } i = 0; for (SelectItem selectItem : _items) { if (item.equalsIgnoreAlias(selectItem)) { return i; } i++; } return -1; }
@Override public int indexOf(SelectItem item) { if (item == null) { return -1; } int i = 0; for (SelectItem selectItem : _items) { if (item == selectItem) { return i; } i++; } i = 0; for (SelectItem selectItem : _items) { if (item.equalsIgnoreAlias(selectItem, true)) { return i; } i++; } i = 0; for (SelectItem selectItem : _items) { if (item.equalsIgnoreAlias(selectItem)) { return i; } i++; } return -1; }
public boolean equalsIgnoreAlias(SelectItem that, boolean exactColumnCompare) { if (that == null) { return false; } if (that == this) { return true; } final EqualsBuilder eb = new EqualsBuilder(); if (exactColumnCompare) { eb.append(this._column == that._column); eb.append(this._fromItem, that._fromItem); } else { eb.append(this._column, that._column); } eb.append(this._function, that._function); eb.appendArrays(this._functionParameters, that._functionParameters); eb.append(this._functionApproximationAllowed, that._functionApproximationAllowed); eb.append(this._expression, that._expression); if (_subQuerySelectItem != null) { eb.append(_subQuerySelectItem.equalsIgnoreAlias(that._subQuerySelectItem)); } else { if (that._subQuerySelectItem != null) { eb.append(false); } } return eb.isEquals(); }
public boolean equalsIgnoreAlias(SelectItem that, boolean exactColumnCompare) { if (that == null) { return false; } if (that == this) { return true; } final EqualsBuilder eb = new EqualsBuilder(); if (exactColumnCompare) { eb.append(this._column == that._column); eb.append(this._fromItem, that._fromItem); } else { eb.append(this._column, that._column); } eb.append(this._function, that._function); eb.appendArrays(this._functionParameters, that._functionParameters); eb.append(this._functionApproximationAllowed, that._functionApproximationAllowed); eb.append(this._expression, that._expression); if (_subQuerySelectItem != null) { eb.append(_subQuerySelectItem.equalsIgnoreAlias(that._subQuerySelectItem)); } else { if (that._subQuerySelectItem != null) { eb.append(false); } } return eb.isEquals(); }