Class CompositePropertyInclusionPolicy<T extends Entity>
- java.lang.Object
-
- com.graphaware.common.policy.inclusion.composite.CompositePropertyInclusionPolicy<T>
-
- All Implemented Interfaces:
InclusionPolicy
,PropertyInclusionPolicy<T>
- Direct Known Subclasses:
CompositeNodePropertyInclusionPolicy
,CompositeRelationshipPropertyInclusionPolicy
public abstract class CompositePropertyInclusionPolicy<T extends Entity> extends Object implements PropertyInclusionPolicy<T>
PropertyInclusionPolicy
composed of multiple other policies. All contained policies must "vote"true
toinclude(String, org.neo4j.graphdb.Entity)
in order for this policy to returntrue
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CompositePropertyInclusionPolicy(PropertyInclusionPolicy<T>[] policies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
boolean
include(String key, T object)
Should a property with the given key of the given entity be included?
-
-
-
Constructor Detail
-
CompositePropertyInclusionPolicy
protected CompositePropertyInclusionPolicy(PropertyInclusionPolicy<T>[] policies)
-
-
Method Detail
-
include
public boolean include(String key, T object)
Description copied from interface:PropertyInclusionPolicy
Should a property with the given key of the given entity be included?- Specified by:
include
in interfacePropertyInclusionPolicy<T extends Entity>
- Parameters:
key
- of the property.object
- containing the property.- Returns:
- true iff the property should be included.
-
-