Added in API level 26

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!

Constructs an AclEntry from the components of this builder.

AclEntry.Builder!

Sets the flags component of this builder.

AclEntry.Builder!
setFlags(vararg flags: AclEntryFlag!)

Sets the flags component of this builder.

AclEntry.Builder!

Sets the permissions component of this builder.

AclEntry.Builder!

Sets the permissions component of this builder.

AclEntry.Builder!

Sets the principal component of this builder.

AclEntry.Builder!

Sets the type component of this builder.

Public methods

build

Added in API level 26
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

Added in API level 26
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

Added in API level 26
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

Added in API level 26
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

Added in API level 26
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

Added in API level 26
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

Added in API level 26
fun setType(type: AclEntryType!): AclEntry.Builder!

Sets the type component of this builder.

Parameters
type AclEntryType!: the component type
Return
AclEntry.Builder! this builder