/** * Indicates if both tags are equal. * * @param object * The object to compare to. * @return True if both tags are equal. */ @Override public boolean equals(final Object object) { return equals(object, true); }
/** * Indicates if both tags are equal. * * @param object * The object to compare to. * @return True if both tags are equal. */ @Override public boolean equals(final Object object) { return equals(object, true); }
/** * Indicates if both tags are equal. * * @param object * The object to compare to. * @return True if both tags are equal. */ @Override public boolean equals(final Object object) { return equals(object, true); }
/** * Returns the range conditional status of an entity. * * @param tag * The tag of the entity. * @param modificationDate * The modification date of the entity. * @return The status of the response. */ public Status getRangeStatus(Tag tag, Date modificationDate) { Status result = Status.CLIENT_ERROR_PRECONDITION_FAILED; if (getRangeTag() != null) { boolean all = getRangeTag().equals(Tag.ALL); // If a tag exists if (tag != null) { if (all || getRangeTag().equals(tag)) { result = Status.SUCCESS_OK; } } } else if (getRangeDate() != null) { // If a modification date exists if (getRangeDate().equals(modificationDate)) { result = Status.SUCCESS_OK; } } return result; }
boolean failed = false; boolean all = (getMatch().size() > 0) && getMatch().get(0).equals(Tag.ALL); String statusMessage = null; && iter.hasNext();) { matchTag = iter.next(); matched = matchTag.equals(tag, false); noneMatchTag = iter.next(); matched = noneMatchTag.equals(tag, (Method.GET .equals(method) || Method.HEAD.equals(method))); && Tag.ALL.equals(getNoneMatch().get(0));
boolean matched = false; boolean failed = false; final boolean all = getMatch().get(0).equals(Tag.ALL); && iter.hasNext();) { tag = iter.next(); matched = tag.equals(representation.getTag(), false); matched = tag.equals(representation.getTag(), (Method.GET.equals(method) || Method.HEAD .equals(method))); matched = getNoneMatch().get(0).equals(Tag.ALL);