Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder of AclEntry
objects.
A Builder
object is obtained by invoking one of the java.nio.file.attribute.AclEntry#newBuilder methods defined by the AclEntry
class.
Builder objects are mutable and are not safe for use by multiple concurrent threads without appropriate synchronization.
Summary
Public methods
build
fun build(): AclEntry!
Constructs an AclEntry
from the components of this builder. The type and who components are required to have been set in order to construct an AclEntry
.
Exceptions |
java.lang.IllegalStateException |
if the type or who component have not been set |
setFlags
fun setFlags(flags: MutableSet<AclEntryFlag!>!): AclEntry.Builder!
Sets the flags component of this builder. On return, the flags component of this builder is a copy of the given set.
Exceptions |
java.lang.ClassCastException |
if the set contains elements that are not of type AclEntryFlag |
setFlags
fun setFlags(vararg flags: AclEntryFlag!): AclEntry.Builder!
Sets the flags component of this builder. On return, the flags component of this builder is a copy of the flags in the given array.
setPermissions
fun setPermissions(perms: MutableSet<AclEntryPermission!>!): AclEntry.Builder!
Sets the permissions component of this builder. On return, the permissions component of this builder is a copy of the given set.
Exceptions |
java.lang.ClassCastException |
if the set contains elements that are not of type AclEntryPermission |
setPermissions
fun setPermissions(vararg perms: AclEntryPermission!): AclEntry.Builder!
Sets the permissions component of this builder. On return, the permissions component of this builder is a copy of the permissions in the given array.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-02-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2021-02-18 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-02-18 UTC."]]