Node: add javadoc @deprecated to findOrCreateChild
This commit is contained in:
parent
40f49fd832
commit
1da9d44a8b
2 changed files with 6 additions and 0 deletions
|
@ -113,6 +113,9 @@ public interface Node<T> {
|
||||||
* @param child the child's data to search or create with
|
* @param child the child's data to search or create with
|
||||||
*
|
*
|
||||||
* @return the found or created child node
|
* @return the found or created child node
|
||||||
|
*
|
||||||
|
* @deprecated use node.findChild(child).orElseGet(() ->
|
||||||
|
* node.createChild(child));
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
Node<T> findOrCreateChild(T child);
|
Node<T> findOrCreateChild(T child);
|
||||||
|
|
|
@ -191,6 +191,9 @@ class NodeItem<T> implements Node<T> {
|
||||||
* @param child the child's data to search or create with
|
* @param child the child's data to search or create with
|
||||||
*
|
*
|
||||||
* @return the found or created child node
|
* @return the found or created child node
|
||||||
|
*
|
||||||
|
* @deprecated use node.findChild(child).orElseGet(() -> node.createChild
|
||||||
|
* (child));
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|
Loading…
Reference in a new issue