Class VelocityDsNodes
java.lang.Object
de.uplanet.lucy.server.usermanager.velocity.VelocityDsNodes
- All Implemented Interfaces:
Iterable<AbstractVelocityDsNode>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get an org structure node from this collection that matches the given object.getByNameComparator
(Comparator<String> arg0) getByPathComparator
(Comparator<String> arg0) getContainerFirstComparator
(Comparator<AbstractVelocityDsNode> p_comparator) Get a comparator for comparing elements in this collection by their type.getGuids()
intersect
(de.uplanet.lucy.server.usermanager.velocity.AbstractVelocityDsNodes<?> p_nodes) Intersect this collection with the given collection.intersect
(Collection<Object> p_collection) Intersect this collection with the given collection.boolean
intersects
(de.uplanet.lucy.server.usermanager.velocity.AbstractVelocityDsNodes<?> arg0) boolean
intersects
(Collection<Object> arg0) boolean
isEmpty()
iterator()
int
size()
sortedBy
(Comparator<? super AbstractVelocityDsNode> p_comparator) toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getContainerFirstComparator
public Comparator<AbstractVelocityDsNode> getContainerFirstComparator(Comparator<AbstractVelocityDsNode> p_comparator) Get a comparator for comparing elements in this collection by their type. Container nodes are sorted before set nodes.- Parameters:
p_comparator
- A comparator for sorting elements of the same type.- Returns:
- The comparator.
-
get
Get an org structure node from this collection that matches the given object.- Parameters:
p_obj
- The key, either an org structure node, a GUID, or a name.- Returns:
- The matching org structure node, or
null
.
-
sortedBy
- See Also:
-
intersect
Intersect this collection with the given collection.- Parameters:
p_collection
- A collection of org structure nodes, GUIDs, or names.- Returns:
- A collection that contains all org structure nodes of this collection that are referenced or contained in the given collection.
- Throws:
IllegalArgumentException
- If the given collection isnull
.
-
intersect
public VelocityDsNodes intersect(de.uplanet.lucy.server.usermanager.velocity.AbstractVelocityDsNodes<?> p_nodes) Intersect this collection with the given collection.- Parameters:
p_nodes
- A collectionVelocityDsNode
s.- Returns:
- A collection that contains all org structure nodes of this collection that are referenced or contained in the given collection.
- Throws:
IllegalArgumentException
- If the given collection isnull
.
-
getByGuidComparator
-
getByNameComparator
-
getByNameComparator
-
getByDescriptionComparator
-
getByDescriptionComparator
-
getByPathComparator
-
getByPathComparator
-
size
public int size() -
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iterator
in interfaceIterable<T extends AbstractVelocityDsNode>
-
contains
-
intersects
-
intersects
public boolean intersects(de.uplanet.lucy.server.usermanager.velocity.AbstractVelocityDsNodes<?> arg0) -
getGuids
-
toString
-