Class Merge.PropertyMergePolicy
java.lang.Object
ac.simons.neo4j.migrations.core.refactorings.Merge.PropertyMergePolicy
- Enclosing interface:
- Merge
A
property merge policy
defines how properties with the same name defined on several
nodes to be merged should be handled. A policy consists of a pattern that matches the names of properties and a
strategy how to deal with them.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The strategy how to deal with multiple properties of the same name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Merge.PropertyMergePolicy
of
(String pattern, Merge.PropertyMergePolicy.Strategy strategy) Create a new policy.pattern()
strategy()
-
Method Details
-
of
public static Merge.PropertyMergePolicy of(String pattern, Merge.PropertyMergePolicy.Strategy strategy) Create a new policy.- Parameters:
pattern
- The pattern that should match the property namestrategy
- A strategy.- Returns:
- The new policy.
-
strategy
- Returns:
- A strategy describing who to deal with any property that matched this policy
-
pattern
- Returns:
- The pattern that is used to check if a graph property matches this policy
-
equals
-
hashCode
public int hashCode()
-