+ protected boolean valueEquals(final UnkeyedListNode other) {
+ final Collection<UnkeyedListEntryNode> otherChildren;
+ if (other instanceof ImmutableUnkeyedListNode) {
+ otherChildren = ((ImmutableUnkeyedListNode) other).children;
+ } else {
+ otherChildren = other.body();
+ }
+ return otherChildren instanceof List ? children.equals(otherChildren)
+ : Iterables.elementsEqual(children, otherChildren);