protected boolean matchesNode()

in jackson/src/main/java/com/spotify/hamcrest/jackson/IsJsonArray.java [58:67]


  protected boolean matchesNode(ArrayNode node, Description mismatchDescription) {
    final ImmutableList<JsonNode> elements = ImmutableList.copyOf(node);
    if (elementsMatcher.matches(elements)) {
      return true;
    } else {
      mismatchDescription.appendText("was an array node whose elements ");
      elementsMatcher.describeMismatch(elements, mismatchDescription);
      return false;
    }
  }