switch (itemsMode) {
case AllItems:
PropertyAllItemsMatcher m1 = new PropertyAllItemsMatcher(property, matcher);
return this.assertThat(m1);
case AnyItems:
PropertyAnyItemMatcher m2 = new PropertyAnyItemMatcher(property, matcher);
return this.assertThat(m2);
default:
throw new RuntimeException("the argument[ItemsMode] of property match API can't be null.");
}
}