Пример #1
0
 @Override
 public ITreeCursor openCursor() {
   if (openCursors == null) {
     openCursors = new ArrayList<>(4);
   }
   final ITreeCursorMutable result =
       new TreeCursorMutable(this, new PatriciaTraverser(this, root), root.hasValue());
   openCursors.add(result);
   return result;
 }
Пример #2
0
 @Override
 public void cursorClosed(@NotNull ITreeCursorMutable cursor) {
   openCursors.remove(cursor);
 }