Class LiteralPropertiesDescription
- java.lang.Object
-
- com.graphaware.common.description.BasePartiallyComparable<PropertiesDescription>
-
- com.graphaware.common.description.property.BasePropertiesDescription
-
- com.graphaware.common.description.property.BaseDetachedPropertiesDescription
-
- com.graphaware.common.description.property.LiteralPropertiesDescription
-
- All Implemented Interfaces:
MutuallyExclusive<PropertiesDescription>
,PartiallyComparable<PropertiesDescription>
,DetachedPropertiesDescription
,PropertiesDescription
public class LiteralPropertiesDescription extends BaseDetachedPropertiesDescription
ABaseDetachedPropertiesDescription
where every predicate not explicitly defined isUndefined
.
-
-
Field Summary
-
Fields inherited from class com.graphaware.common.description.property.BaseDetachedPropertiesDescription
predicates
-
-
Constructor Summary
Constructors Constructor Description LiteralPropertiesDescription(Map<String,Predicate> predicates)
Construct a new properties description from the given map of predicates.LiteralPropertiesDescription(Entity entity)
Construct a new properties description as the most specific description of the given entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LiteralPropertiesDescription
newInstance(Map<String,Predicate> predicates)
Create a new instance of this class with the given predicates.protected Predicate
undefined()
Get the default predicate for undefined keys.-
Methods inherited from class com.graphaware.common.description.property.BaseDetachedPropertiesDescription
equals, get, getKeys, hashCode, with
-
Methods inherited from class com.graphaware.common.description.property.BasePropertiesDescription
isMoreGeneralThan, isMutuallyExclusive, self, toString
-
Methods inherited from class com.graphaware.common.description.BasePartiallyComparable
isMoreSpecificThan
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.graphaware.common.description.MutuallyExclusive
isMutuallyExclusive
-
Methods inherited from interface com.graphaware.common.description.PartiallyComparable
isMoreGeneralThan, isMoreSpecificThan
-
-
-
-
Constructor Detail
-
LiteralPropertiesDescription
public LiteralPropertiesDescription(Entity entity)
Construct a new properties description as the most specific description of the given entity.- Parameters:
entity
- to construct the most specific properties description from.
-
-
Method Detail
-
newInstance
protected LiteralPropertiesDescription newInstance(Map<String,Predicate> predicates)
Description copied from class:BaseDetachedPropertiesDescription
Create a new instance of this class with the given predicates.- Specified by:
newInstance
in classBaseDetachedPropertiesDescription
- Parameters:
predicates
- to copy.- Returns:
- new instance.
-
undefined
protected Predicate undefined()
Description copied from class:BaseDetachedPropertiesDescription
Get the default predicate for undefined keys.- Specified by:
undefined
in classBaseDetachedPropertiesDescription
- Returns:
- predicate.
-
-