// TODO Support string length?
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) {
// TODO Support string length?
checkArgument(length >= 0, "length (%s) must be >= 0", length);
if (actual() == null || !actual().isContainerNode()) {
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) {
// 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);
}
}