@Override public String toString() { StringBuilder builder = new StringBuilder("["); for (Iterator<?> iterator = getContent().iterator(); iterator.hasNext();) { Object expression = iterator.next(); builder.append(expression.toString()); if (iterator.hasNext()) { builder.append(getToStringInfix()); } } builder.append("]"); return builder.toString(); }
@Override public int hashCode() { return getContent().hashCode(); }
/** * Indicates whether this condition is empty, i.e. whether or not it * contains any discrete items. * @return {@code true} if empty; {@code false} otherwise */ public boolean isEmpty() { return getContent().isEmpty(); }
@Override public String toString() { StringBuilder builder = new StringBuilder("["); for (Iterator<?> iterator = getContent().iterator(); iterator.hasNext();) { Object expression = iterator.next(); builder.append(expression.toString()); if (iterator.hasNext()) { builder.append(getToStringInfix()); } } builder.append("]"); return builder.toString(); }
@Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } if (other == null || getClass() != other.getClass()) { return false; } return getContent().equals(((AbstractRequestCondition<?>) other).getContent()); }
@Override public int hashCode() { return getContent().hashCode(); }
/** * Indicates whether this condition is empty, i.e. whether or not it * contains any discrete items. * @return {@code true} if empty; {@code false} otherwise */ public boolean isEmpty() { return getContent().isEmpty(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj != null && getClass() == obj.getClass()) { AbstractRequestCondition<?> other = (AbstractRequestCondition<?>) obj; return getContent().equals(other.getContent()); } return false; }