Builder
class Builder
kotlin.Any | |
↳ | java.nio.file.attribute.AclEntry.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 | |
---|---|
AclEntry! |
build() Constructs an |
AclEntry.Builder! |
setFlags(flags: MutableSet<AclEntryFlag!>!) Sets the flags component of this builder. |
AclEntry.Builder! |
setFlags(vararg flags: AclEntryFlag!) Sets the flags component of this builder. |
AclEntry.Builder! |
setPermissions(perms: MutableSet<AclEntryPermission!>!) Sets the permissions component of this builder. |
AclEntry.Builder! |
setPermissions(vararg perms: AclEntryPermission!) Sets the permissions component of this builder. |
AclEntry.Builder! |
setPrincipal(who: UserPrincipal!) Sets the principal component of this builder. |
AclEntry.Builder! |
setType(type: AclEntryType!) Sets the type component of this builder. |
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
.
Return | |
---|---|
AclEntry! |
a new ACL entry |
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.
Parameters | |
---|---|
flags |
MutableSet<AclEntryFlag!>!: the flags component |
Return | |
---|---|
AclEntry.Builder! |
this builder |
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.
Parameters | |
---|---|
flags |
AclEntryFlag!: the flags component |
Return | |
---|---|
AclEntry.Builder! |
this builder |
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.
Parameters | |
---|---|
perms |
MutableSet<AclEntryPermission!>!: the permissions component |
Return | |
---|---|
AclEntry.Builder! |
this builder |
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.
Parameters | |
---|---|
perms |
AclEntryPermission!: the permissions component |
Return | |
---|---|
AclEntry.Builder! |
this builder |
setPrincipal
fun setPrincipal(who: UserPrincipal!): AclEntry.Builder!
Sets the principal component of this builder.
Parameters | |
---|---|
who |
UserPrincipal!: the principal component |
Return | |
---|---|
AclEntry.Builder! |
this builder |
setType
fun setType(type: AclEntryType!): AclEntry.Builder!
Sets the type component of this builder.
Parameters | |
---|---|
type |
AclEntryType!: the component type |
Return | |
---|---|
AclEntry.Builder! |
this builder |