E - the type of component.public abstract class AbstractComponent<E extends AbstractComponent> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,E> |
children
The children of this component.
|
protected E |
parent
The parent of this component.
|
protected String |
uuid
The uuid of this component.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractComponent(String uuid)
Initialize this component witht he specified uuid.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
E |
getChild(String uuid)
Get the child with the specified uuid.
|
int |
getChildCount()
Get the number of children of this topology component.
|
List<E> |
getChildren()
Get the children of this component in a thread-safe way.
|
String |
getDisplayName()
Get a user-friendly representation of this topology component.
|
E |
getParent()
Get the parent of this compponent.
|
String |
getUuid()
Get the uuid of this ocmponent.
|
int |
hashCode() |
protected final transient Map<String,E extends AbstractComponent> children
protected transient E extends AbstractComponent parent
protected final String uuid
protected AbstractComponent(String uuid)
uuid - the uuid assigned to this component.public E getParent()
AbstractComponent instance.public E getChild(String uuid)
uuid - the uuid of the child to look for.AbstractComponent or null if there is no child with this uuid.public int getChildCount()
public List<E> getChildren()
AbstractComponent instances.public String getUuid()
public String getDisplayName()
Copyright © 2005-2019 JPPF Team.