public boolean equals(Object o) { if (! (o instanceof Match)) return false; Match other=(Match)o; if (other.position!=position) return false; if (!other.item.equals(item)) return false; return true; }
@Override public boolean equals(Object object) { if ( ! super.equals(object)) return false; BoolItem other = (BoolItem) object; // Ensured by superclass return this.value == other.value; }
@Override public boolean equals(Object object) { if (!super.equals(object)) return false; WordItem other = (WordItem) object; // Ensured by superclass return this.word.equals(other.word); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } RegExpItem other = (RegExpItem) obj; if (expression == null) { if (other.expression != null) { return false; } } else if (!expression.equals(other.expression)) { return false; } return true; }
@Override public boolean equals(Object object) { if ( ! super.equals(object)) return false; IntItem other = (IntItem) object; // Ensured by superclass if ( ! getFromLimit().equals(other.getFromLimit())) return false; if ( ! getToLimit().equals(other.getToLimit())) return false; if ( getHitLimit() != other.getHitLimit()) return false; return true; }