| Constructor and Description |
|---|
EMFCompareJavaPredicates() |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<? super Diff> |
ofKind(DifferenceKind... kind)
This predicate can be used to check whether a particular diff is of the given
kind. |
static Predicate<Diff> |
onFeature(EStructuralFeature feature)
Accept only diffs that inherit either AttributeChange, ReferenceChange, or FeatureMapChange that
concern the given feature.
|
static Predicate<Diff> |
possiblyConflictingWith(Diff diff)
Predicate builder for diffs that can conflict with the given diff.
|
static Predicate<Diff> |
valueMatches(IEqualityHelper helper,
Object value)
Accept only diffs whose value matches the given value.
|
public static Predicate<Diff> possiblyConflictingWith(Diff diff)
diff - The diffpublic static Predicate<? super Diff> ofKind(DifferenceKind... kind)
kind. This is
mainly used to differentiate additions from deletions.kind - The kind we expect this diff to have.public static Predicate<Diff> onFeature(EStructuralFeature feature)
feature - Feature to deal withpublic static Predicate<Diff> valueMatches(IEqualityHelper helper, Object value)
helper - The helper to match valuesvalue - The value to match
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.