/** * Returns if the field is referenced in a sort key * * @param field The field */ public boolean isRequired(Path field) { return isRequired(field, Path.EMPTY); }
/** * Returns if the field is referenced in a sort key * * @param field The field */ public boolean isRequired(Path field) { return isRequired(field, Path.EMPTY); }
/** * Returns if the field is referenced in a sort key * * @param field The field * @param ctx The nested context */ public boolean isRequired(Path field, Path ctx) { if (this instanceof SortKey) { return isRequired(field, (SortKey) this, ctx); } else if (this instanceof CompositeSortKey) { return isRequired(field, (CompositeSortKey) this, ctx); } return false; }
/** * Returns if the field is referenced in a sort key * * @param field The field * @param ctx The nested context */ public boolean isRequired(Path field, Path ctx) { if (this instanceof SortKey) { return isRequired(field, (SortKey) this, ctx); } else if (this instanceof CompositeSortKey) { return isRequired(field, (CompositeSortKey) this, ctx); } return false; }
private static boolean isRequired(Path field, CompositeSortKey sort, Path ctx) { for (SortKey key : sort.getKeys()) { if (isRequired(field, key, ctx)) { return true; } } return false; }
private static boolean isRequired(Path field, CompositeSortKey sort, Path ctx) { for (SortKey key : sort.getKeys()) { if (isRequired(field, key, ctx)) { return true; } } return false; }
(s!=null && s.isRequired(field)) ) { LOGGER.debug("{}: required",field); fields.add(field);
|| (s != null && s.isRequired(field))) { LOGGER.debug("{}: required", field); fields.add(field);