Class BasePropertiesDescription
- java.lang.Object
-
- com.graphaware.common.description.BasePartiallyComparable<PropertiesDescription>
-
- com.graphaware.common.description.property.BasePropertiesDescription
-
- All Implemented Interfaces:
MutuallyExclusive<PropertiesDescription>
,PartiallyComparable<PropertiesDescription>
,PropertiesDescription
- Direct Known Subclasses:
BaseDetachedPropertiesDescription
,LazyPropertiesDescription
public abstract class BasePropertiesDescription extends BasePartiallyComparable<PropertiesDescription> implements PropertiesDescription
Base class forPropertiesDescription
implementations.
-
-
Constructor Summary
Constructors Constructor Description BasePropertiesDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMoreGeneralThan(PropertiesDescription other)
Is this instance more general than (or at least as general as) the given instance?boolean
isMutuallyExclusive(PropertiesDescription other)
Is this instance mutually exclusive with the given other instance? This method is reflexive.protected PropertiesDescription
self()
String
toString()
-
Methods inherited from class com.graphaware.common.description.BasePartiallyComparable
isMoreSpecificThan
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.graphaware.common.description.PartiallyComparable
isMoreSpecificThan
-
Methods inherited from interface com.graphaware.common.description.property.PropertiesDescription
get, getKeys
-
-
-
-
Method Detail
-
self
protected final PropertiesDescription self()
- Specified by:
self
in classBasePartiallyComparable<PropertiesDescription>
- Returns:
- this.
-
isMoreGeneralThan
public boolean isMoreGeneralThan(PropertiesDescription other)
Description copied from interface:PartiallyComparable
Is this instance more general than (or at least as general as) the given instance?- Specified by:
isMoreGeneralThan
in interfacePartiallyComparable<PropertiesDescription>
- Parameters:
other
- to compare.- Returns:
- true iff this instance is more general than or as general as the provided instance.
-
isMutuallyExclusive
public boolean isMutuallyExclusive(PropertiesDescription other)
Description copied from interface:MutuallyExclusive
Is this instance mutually exclusive with the given other instance? This method is reflexive.- Specified by:
isMutuallyExclusive
in interfaceMutuallyExclusive<PropertiesDescription>
- Parameters:
other
- to check mutual exclusivity against.- Returns:
- true iff this and the other are mutually exclusive.
-
-