Lines Matching refs:flags

51  *    <li><p> The {@link #flags flags} component is a set of {@link AclEntryFlag
52 * flags} to indicate how entries are inherited and propagated </p></li>
69 private final Set<AclEntryFlag> flags;
78 Set<AclEntryFlag> flags)
83 this.flags = flags;
102 private Set<AclEntryFlag> flags;
107 Set<AclEntryFlag> flags)
109 assert perms != null && flags != null;
113 this.flags = flags;
131 return new AclEntry(type, who, perms, flags);
215 * Sets the flags component of this builder. On return, the flags
218 * @param flags the flags component
225 public Builder setFlags(Set<AclEntryFlag> flags) {
226 if (flags.isEmpty()) {
228 flags = Collections.emptySet();
231 flags = EnumSet.copyOf(flags);
232 checkSet(flags, AclEntryFlag.class);
235 this.flags = flags;
240 * Sets the flags component of this builder. On return, the flags
241 * component of this builder is a copy of the flags in the given
244 * @param flags the flags component
247 public Builder setFlags(AclEntryFlag... flags) {
250 for (AclEntryFlag f: flags) {
255 this.flags = set;
263 * flags components is the empty set.
269 Set<AclEntryFlag> flags = Collections.emptySet();
270 return new Builder(null, null, perms, flags);
280 return new Builder(entry.type, entry.who, entry.perms, entry.flags);
313 * Returns a copy of the flags component.
315 * <p> The returned set is a modifiable copy of the flags.
317 * @return the flags component
319 public Set<AclEntryFlag> flags() {
320 return new HashSet<AclEntryFlag>(flags);
331 * components are equal, and their flags components are equal.
354 if (!this.flags.equals(other.flags))
377 h = hash(h, flags);
403 // flags
404 if (!flags.isEmpty()) {
405 for (AclEntryFlag flag: flags) {