Interface EntityId
-
- All Superinterfaces:
ElementId,Serializable
- All Known Implementing Classes:
Entity,EntitySeed,LazyEntity
public interface EntityId extends ElementId
AnEntityIdis an interface describing the core methods that are required in order to identify anEntity.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface uk.gov.gchq.gaffer.data.element.id.ElementId
ElementId.Matches
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ObjectgetVertex()Get the vertex object.default booleanisEqual(ElementId that)default booleanisEqual(EntityId that)default ElementId.MatchesisRelated(EdgeId that)This is related to anEdgeIdif either the EdgeId's source or destination matches this EntityId's vertex.default ElementId.MatchesisRelated(ElementId that)This is related to anElementIdif either the ElementId is equal to this EntityId or it is an EdgeId and its source or destination matches this EntityId's vertex.voidsetVertex(Object vertex)Set the vertex object.-
Methods inherited from interface uk.gov.gchq.gaffer.data.element.id.ElementId
getClassName, setClassName
-
-
-
-
Method Detail
-
getVertex
Object getVertex()
Get the vertex object.- Returns:
- the vertex
-
setVertex
void setVertex(Object vertex)
Set the vertex object.- Parameters:
vertex- the vertex object to set
-
isEqual
default boolean isEqual(EntityId that)
-
isRelated
default ElementId.Matches isRelated(ElementId that)
This is related to anElementIdif either the ElementId is equal to this EntityId or it is an EdgeId and its source or destination matches this EntityId's vertex.- Specified by:
isRelatedin interfaceElementId- Parameters:
that- theElementIdto compare- Returns:
- An instance of
ElementId.Matchesto describe how the seeds are related.
-
isRelated
default ElementId.Matches isRelated(EdgeId that)
This is related to anEdgeIdif either the EdgeId's source or destination matches this EntityId's vertex.- Parameters:
that- theEdgeIdto compare- Returns:
- An instance of
ElementId.Matchesto describe how the seeds are related.
-
-