/** * Compares two models, defined by two statement collections, and returns * <tt>true</tt> if the first model is a subset of the second model. */ public static boolean isSubset(Set<? extends Statement> model1, Set<? extends Statement> model2) { // Compare the number of statements in both sets if (model1.size() > model2.size()) { return false; } return isSubsetInternal(model1, model2); }
/** * Compares two models, defined by two statement collections, and returns * <tt>true</tt> if the first model is a subset of the second model. */ public static boolean isSubset(Set<? extends Statement> model1, Set<? extends Statement> model2) { // Compare the number of statements in both sets if (model1.size() > model2.size()) { return false; } return isSubsetInternal(model1, model2); }
/** * Compares two models, defined by two statement collections, and returns * <tt>true</tt> if they are equal. Models are equal if they contain the * same set of statements. Blank node IDs are not relevant for model * equality, they are mapped from one model to the other by using the * attached properties. */ public static boolean equals(Set<? extends Statement> model1, Set<? extends Statement> model2) { // Compare the number of statements in both sets if (model1.size() != model2.size()) { return false; } return isSubsetInternal(model1, model2); }
/** * Compares two models, defined by two statement collections, and returns * <tt>true</tt> if they are equal. Models are equal if they contain the same * set of statements. Blank node IDs are not relevant for model equality, * they are mapped from one model to the other by using the attached * properties. */ public static boolean equals(Set<? extends Statement> model1, Set<? extends Statement> model2) { // Compare the number of statements in both sets if (model1.size() != model2.size()) { return false; } return isSubsetInternal(model1, model2); }
/** * Compares two models, defined by two statement collections, and returns * <tt>true</tt> if the first model is a subset of the second model. */ public static boolean isSubset(Set<? extends Statement> model1, Set<? extends Statement> model2) { // Compare the number of statements in both sets if (model1.size() > model2.size()) { return false; } return isSubsetInternal(model1, model2); }
/** * Compares two models, defined by two statement collections, and returns * <tt>true</tt> if they are equal. Models are equal if they contain the same * set of statements. Blank node IDs are not relevant for model equality, * they are mapped from one model to the other by using the attached * properties. */ public static boolean equals(Set<? extends Statement> model1, Set<? extends Statement> model2) { // Compare the number of statements in both sets if (model1.size() != model2.size()) { return false; } return isSubsetInternal(model1, model2); }