Package com.helger.commons.hierarchy
-
Interface Summary Interface Description IChildrenProvider<CHILDTYPE> This interface can be used to generically resolved children of a certain object.IChildrenProviderSorted<CHILDTYPE> This interface can be used to generically resolved children of a certain object in a sorted way.IChildrenProviderWithID<KEYTYPE,CHILDTYPE> This interface can be used to generically resolved children of a certain object.IHasChildren<CHILDTYPE> A simple interface, indicating that an item has direct children.IHasChildrenRecursive<CHILDTYPE extends IHasChildrenRecursive<CHILDTYPE>> A simple interface, indicating that an item has children which also has children etc.IHasChildrenSorted<CHILDTYPE> ExtendsIHasChildrenby indicating that the child items are sorted!IHasParent<PARENTTYPE> This helper interface is required to build a hierarchy of objects.IParentProvider<PARENTTYPE> This helper interface is required to build a generic tree. -
Class Summary Class Description ChildrenProviderHasChildren<CHILDTYPE extends IHasChildren<CHILDTYPE>> A standard implementation of theIChildrenProviderinterface that works with all types that implementIHasChildren.ChildrenProviderHasChildrenSorted<CHILDTYPE extends IHasChildrenSorted<CHILDTYPE>> AnIChildrenProviderSortedimplementation for object implementing theIHasChildrenSortedinterface.ChildrenProviderHasChildrenSorting<CHILDTYPE extends IHasChildren<CHILDTYPE>> An implementation of theIChildrenProviderinterface that works with all types that implementIHasChildren.ChildrenProviderHasChildrenWithID<KEYTYPE,CHILDTYPE extends IHasChildren<CHILDTYPE> & IHasID<KEYTYPE>> An implementation of theIChildrenProviderWithIDinterface that works with all types that implementIHasChildrenandIHasID.ChildrenProviderSorting<CHILDTYPE> AnIChildrenProviderthat returns the children inChildrenProviderSorting.getAllChildren(Object)sorted.
The implementation wraps an existing children provider and uses and external comparator for sorting.ChildrenProviderSortingWithID<KEYTYPE,CHILDTYPE> AnIChildrenProviderWithIDwith ID that returns the children inChildrenProviderSorting.getAllChildren(Object)sorted.