/
R.D.X
/
pieplex-api
Обзор
Документация
Войти
/
R.D.X
/
pieplex-api
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main/java/ru/rdx/pieplex/api/data/Node.java
38 строк
864 B
a.kiselev
graph manipulate
10 май 2026, 10:45
10 май 2026, 10:45
8b95959
Код
Авторство
О чём код?
package ru.rdx.pieplex.api.data; import ru.rdx.pieplex.api.data.impl.EmptyNodeImpl; import ru.rdx.pieplex.api.data.impl.NodeImpl; import java.util.Map; import java.util.List; public interface Node { void link(String name, Integer i); Map<String, List<Integer>> getNextNodes(); void setValue(Object value); boolean isEmpty(); Object getValue(); int next(String name); List<Integer> descendant(); List<String> descendantNames(); List<Integer> descendant(String name); Node reducedCopy(); Node fullCopy(); //boolean isLeaf(); void deconstruct(); static final Node EMPTY = new EmptyNodeImpl(); static Node newInstance() { return new NodeImpl(); } static Node newInstance(Object value) { Node n = new NodeImpl(); n.setValue(value); return n; } }