public final class EntityIdPath
extends org.fuin.objects4j.vo.AbstractStringValueObject
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PATH_SEPARATOR
Divides the entity identifiers in the path.
|
| Constructor and Description |
|---|
EntityIdPath(EntityId... entityIds)
Constructor with ID array.
|
EntityIdPath(java.util.List<EntityId> ids)
Constructor with ID list.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asBaseType() |
<T extends EntityId> |
first()
Returns the first entity identifier in the path.
|
java.util.Iterator<EntityId> |
iterator()
Creates a NEW list of the entity identifiers contained in the entity id path and returns an iterator on it.
|
<T extends EntityId> |
last()
Returns the last entity identifier in the path.
|
EntityIdPath |
parent()
Returns the parent path without the last entry.
|
EntityIdPath |
rest()
Returns the path without the first entry.
|
int |
size()
Returns the number of elements in the path.
|
java.lang.String |
toString() |
public static final java.lang.String PATH_SEPARATOR
public EntityIdPath(EntityId... entityIds)
entityIds - Entity identifier in correct order (from outer to inner).public EntityIdPath(java.util.List<EntityId> ids)
ids - Entity identifiers in correct order (from outer to inner).public final java.util.Iterator<EntityId> iterator()
Iterator.remove() method will NOT remove something from this entity id path.public final <T extends EntityId> T first()
T - Type of the entity identifier that is returned.public final <T extends EntityId> T last()
T - Type of the entity identifier that is returned.public final EntityIdPath rest()
public EntityIdPath parent()
public final int size()
public final java.lang.String asBaseType()
asBaseType in interface org.fuin.objects4j.vo.ValueObjectWithBaseType<java.lang.String>public final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 fuin.org (Germany). All Rights Reserved.