java.nio.file.attribute
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Modifier and Type | Class and Description |
|---|---|
static class |
AclEntry.Builder
A builder of AclEntry objects. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object ob)
Compares the specified object with this ACL entry for equality. |
Set<AclEntryFlag> |
flags()
Returns a copy of the flags component. |
int |
hashCode()
Returns the hash-code value for this ACL entry. |
static AclEntry.Builder |
newBuilder()
Constructs a new builder. |
static AclEntry.Builder |
newBuilder(AclEntry entry)
Constructs a new builder with the components of an existing ACL entry. |
Set<AclEntryPermission> |
permissions()
Returns a copy of the permissions component. |
UserPrincipal |
principal()
Returns the principal component. |
String |
toString()
Returns the string representation of this ACL entry. |
AclEntryType |
type()
Returns the ACL entry type. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
newBuilder
public static AclEntry.Builder newBuilder()
- Constructs a new builder. The initial value of the type and who
components is
null. The initial value of the permissions and flags components is the empty set. - Returns:
- a new builder
newBuilder
public static AclEntry.Builder newBuilder(AclEntry entry)
- Constructs a new builder with the components of an existing ACL entry.
- Parameters:
entry- an ACL entry- Returns:
- a new builder
type
public AclEntryType type()
- Returns the ACL entry type.
principal
public UserPrincipal principal()
- Returns the principal component.
permissions
public Set<AclEntryPermission> permissions()
- Returns a copy of the permissions component.
The returned set is a modifiable copy of the permissions.
flags
public Set<AclEntryFlag> flags()
- Returns a copy of the flags component.
The returned set is a modifiable copy of the flags.
equals
public boolean equals(Object ob)
- Compares the specified object with this ACL entry for equality.
If the given object is not an
AclEntrythen this method immediately returnsfalse.For two ACL entries to be considered equals requires that they are both the same type, their who components are equal, their permissions components are equal, and their flags components are equal.
This method satisfies the general contract of the
Object.equalsmethod. - Parameters:
ob- the object to which this object is to be compared- Returns:
trueif, and only if, the given object is an AclEntry that is identical to this AclEntry- See Also:
Object.hashCode(),HashMap
hashCode
public int hashCode()
- Returns the hash-code value for this ACL entry.
This method satisfies the general contract of the
Object.hashCode()method. - Returns:
- a hash code value for this object.
- See Also:
Object.equals(java.lang.Object),System.identityHashCode(java.lang.Object)
toString
public String toString()
- Returns the string representation of this ACL entry.
- Returns:
- the string representation of this entry
|
Java™ Platform Standard Ed. 7 DRAFT ea-b59 |
|||||||||
| PREV CLASS NEXT CLASS | NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.nio.file.attribute.AclEntry