public boolean isEquals(XmlElement otherNode) { return !compareTo(otherNode).isPresent(); }
/** * Compares this document to another {@link com.android.manifmerger.XmlDocument} ignoring all * attributes belonging to the {@link com.android.SdkConstants#TOOLS_URI} namespace. * * @param other the other document to compare against. * @return a {@link String} describing the differences between the two XML elements or * {@link Optional#absent()} if they are equals. */ @SuppressWarnings("CovariantCompareTo") public Optional<String> compareTo(@NonNull XmlDocument other) { return getRootNode().compareTo(other.getRootNode()); }
childElement.printPosition(), childrenKeys.get(childElement.getId()).printPosition()); if (twin.compareTo(childElement).isPresent()) { childElement.addMessage(mergingReport, ERROR, message); } else {
break; case STRICT: Optional<String> compareMessage = higherPriority.compareTo(lowerPriority); if (compareMessage.isPresent()) {