T
- the self bounding of the scoped objectpublic interface Scoped<T extends Self<T>> extends Self<T>
Modifier and Type | Method and Description |
---|---|
void |
collapseIntoParentScope()
Collapse this scope into its parent.
|
java.util.Optional<T> |
getParentScope() |
T |
nestChildScope() |
java.util.Optional<T> getParentScope()
void collapseIntoParentScope()
java.lang.NullPointerException
- if the parent scope doesn't existT nestChildScope()