public void hasLength(int length) {
        // TODO Support string length?
        checkArgument(length >= 0, "length (%s) must be >= 0", length);
        if (actual() == null || !actual().isContainerNode()) {
            fail("is a container");
        } else if (actual().size() != length) {
            fail("has length", length);
        }
    }
public void hasLength(int length) {
       
        checkArgument(length >= 0, "length (%s) must be >= 0", length);
        if (actual() == null || !actual().isContainerNode()) {
            fail("is a container");
        } else if (actual().size() != length) {
            fail("has length", length);
        }
    }
public void haslength(int length) { checkargument(length >= 0, "length (%s) must be >= 0", length); if (actual() == null || !actual().iscontainernode()) { fail("is a container"); } else if (actual().size() != length) { fail("has length", length); } }