/** * Returns a new {@code PolicyEntry} object of the given Subjects and Resources. * * @param label the Label of the PolicyEntry to create. * @param subjects the Subjects contained in the PolicyEntry to create. * @param resources the Resources of the PolicyEntry to create. * @return a new {@code PolicyEntry} object. * @throws NullPointerException if any argument is {@code null}. */ public static PolicyEntry of(final Label label, final Subjects subjects, final Resources resources) { checkNotNull(subjects, "subjects"); checkNotNull(resources, "resources"); return new ImmutablePolicyEntry(label, subjects, resources); }