Oneornonepresentvalidator - fightale.org/docsRechercher la documentation ...RechercherCtrlK
boolean
test
(@Nonnull BuilderObjectHelper<?> objectHelper1, @Nonnull BuilderObjectHelper<?> objectHelper2)
return
1
public
static
boolean
test
(@Nonnull BuilderObjectHelper<?> objectHelper1, @Nonnull BuilderObjectHelper<?> objectHelper2, @Nonnull BuilderObjectHelper<?> objectHelper3)
return
1
@Nonnull
public
static
errorMessage
(@Nonnull String[] attributes, BuilderObjectHelper<?>[] objectHelpers)
return
@Nonnull
public
static
errorMessage
(@Nonnull String[] attributes, boolean[] readStatus)
return
@Nonnull
public
static
errorMessage
(@Nonnull String[] attributes, @Nonnull IntPredicate presentPredicate)
StringBuilder
result
=
new
StringBuilder
"Exactly one or none of "
String
sep
=
", "
for
int
i
=
0
if
1
""
"'%s'%s%s"
"(Present)"
""
return
" must be present"
@Nonnull
public
static
withAttributes
(String... attributes)
return
new
OneOrNonePresentValidator