Class LazyPropertiesDescription
- java.lang.Object
-
- com.graphaware.common.description.BasePartiallyComparable<PropertiesDescription>
-
- com.graphaware.common.description.property.BasePropertiesDescription
-
- com.graphaware.common.description.property.LazyPropertiesDescription
-
- All Implemented Interfaces:
MutuallyExclusive<PropertiesDescription>
,PartiallyComparable<PropertiesDescription>
,PropertiesDescription
public class LazyPropertiesDescription extends BasePropertiesDescription implements PropertiesDescription
The most specificPropertiesDescription
of aEntity
that lazily consults the underlyingEntity
and returns only predicates of typeEqualTo
. For keys that don't have a corresponding property defined on theEntity
,Undefined
is returned.
-
-
Constructor Summary
Constructors Constructor Description LazyPropertiesDescription(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 boolean
equals(Object o)
Predicate
get(String key)
Get predicate for a property with the given key.Iterable<String>
getKeys()
Get keys of all predicates.int
hashCode()
-
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
-
LazyPropertiesDescription
public LazyPropertiesDescription(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
-
get
public Predicate get(String key)
Description copied from interface:PropertiesDescription
Get predicate for a property with the given key.- Specified by:
get
in interfacePropertiesDescription
- Parameters:
key
- key.- Returns:
- predicate. Never null.
-
getKeys
public Iterable<String> getKeys()
Description copied from interface:PropertiesDescription
Get keys of all predicates.- Specified by:
getKeys
in interfacePropertiesDescription
- Returns:
- all keys.
-
-