PARENTTYPE - The type of object to get a parent from@FunctionalInterface public interface IParentProvider<PARENTTYPE>
| Modifier and Type | Method and Description |
|---|---|
PARENTTYPE |
getParent(PARENTTYPE aCurrent)
Get the parent of the passed object.
|
static <PARENTTYPE extends IHasParent<PARENTTYPE>> |
parentProviderHasParent() |
@Nullable PARENTTYPE getParent(PARENTTYPE aCurrent)
aCurrent - The object to determine the parent of. No null or non-
null constraint possible.null if the object has no
parent.@Nullable static <PARENTTYPE extends IHasParent<PARENTTYPE>> IParentProvider<PARENTTYPE> parentProviderHasParent()
Copyright © 2014–2017 Philip Helger. All rights reserved.