Class RemoveSubGraphListenerImpl
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.graph.modifier.RemoveSubGraphListenerImpl
-
- All Implemented Interfaces:
Comparable<IdAble>
,RemoveSubGraphListener
,IdAble
public class RemoveSubGraphListenerImpl extends IdAbleImpl implements RemoveSubGraphListener
A base class implementation for remove sub graph listeners- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description RemoveSubGraphListenerImpl()
ConstructorRemoveSubGraphListenerImpl(RemoveSubGraphListenerImpl removeSubGraphListenerImpl)
Copy constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoveSubGraphListenerImpl
deepClone()
An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call.protected static long
generateId()
Every instance implementing this interface should generate its id using this method to ensure that we have a unique id across all break edge listeners in case they are stored in a comparable based containervoid
onCompletion()
callback after completing all subgraph removalsvoid
onRemoveSubGraphEdge(Edge edge)
callback whenever an edge is removed from a subgraph it is part ofvoid
onRemoveSubGraphVertex(Vertex vertex)
callback whenever a vertex is removed from a subgraph it is part ofRemoveSubGraphListenerImpl
shallowClone()
Create a shallow copy of this entity-
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, generateId, getId, hashCode, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode
-
-
-
-
Constructor Detail
-
RemoveSubGraphListenerImpl
public RemoveSubGraphListenerImpl()
Constructor
-
RemoveSubGraphListenerImpl
public RemoveSubGraphListenerImpl(RemoveSubGraphListenerImpl removeSubGraphListenerImpl)
Copy constructor- Parameters:
removeSubGraphListenerImpl
- to copy
-
-
Method Detail
-
generateId
protected static long generateId()
Every instance implementing this interface should generate its id using this method to ensure that we have a unique id across all break edge listeners in case they are stored in a comparable based container- Returns:
- id for a break edge listener class instance
-
onRemoveSubGraphEdge
public void onRemoveSubGraphEdge(Edge edge)
callback whenever an edge is removed from a subgraph it is part of- Specified by:
onRemoveSubGraphEdge
in interfaceRemoveSubGraphListener
- Parameters:
edge
- that is removed
-
onRemoveSubGraphVertex
public void onRemoveSubGraphVertex(Vertex vertex)
callback whenever a vertex is removed from a subgraph it is part of- Specified by:
onRemoveSubGraphVertex
in interfaceRemoveSubGraphListener
- Parameters:
vertex
- that is removed
-
onCompletion
public void onCompletion()
callback after completing all subgraph removals- Specified by:
onCompletion
in interfaceRemoveSubGraphListener
-
shallowClone
public RemoveSubGraphListenerImpl shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceIdAble
- Specified by:
shallowClone
in classIdAbleImpl
- Returns:
- shallow copy of entity
-
deepClone
public RemoveSubGraphListenerImpl deepClone()
An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code- Specified by:
deepClone
in interfaceIdAble
- Specified by:
deepClone
in classIdAbleImpl
- Returns:
- deep copy of entity
-
-