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(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.
      
      
     
    
      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 | 
        
      
     
    
      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.
      
      
     
    
      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 | 
        
      
     
    
    
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  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 2025-02-10 UTC.
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]