- /**
- * {@inheritDoc}
- *
- * <p>
- * Returns iteration of all child nodes. Order of returned child nodes may be defined by subinterfaces.
- */
- @Override
- Collection<@NonNull V> body();
-
- /**
- * Return the logical size of this container body. The default implementation defers to {@code body().size()}.
- *
- * @return Size of this container's body.
- */
- default int size() {
- return body().size();
- }
-
- /**
- * Determine whether this container body is empty. The default implementation defers to {@code body().isEmpty()}.
- *
- * @return True if this container has an empty body.
- */
- default boolean isEmpty() {
- return body().isEmpty();
- }