code: public List<AclEntry> getEntries() {
      ImmutableList.Builder<AclEntry> builder = new ImmutableList.Builder<>();
      for (Map.Entry<String, AclActions> kv : mNamedUserActions.entrySet()) {
        builder.add(new AclEntry.Builder()
            .setType(AclEntryType.NAMED_USER)
            .setSubject(kv.getKey())
            .setActions(kv.getValue())
            .build());
      }
      for (Map.Entry<String, AclActions> kv : mNamedGroupActions.entrySet()) {
        builder.add(new AclEntry.Builder()
            .setType(AclEntryType.NAMED_GROUP)
            .setSubject(kv.getKey())
            .setActions(kv.getValue())
            .build());
      }
      if (hasExtended()) {
        // The mask is only relevant if the ACL contains extended entries.
        builder.add(new AclEntry.Builder()
            .setType(AclEntryType.MASK)
            .setActions(mMaskActions)
            .build());
      }
      return builder.build();
    }
docs: Returns a list of {@link AclEntry} which represent this ACL instance. The mask will only be
  included if extended ACL entries exist.
  
  @return an immutable list of ACL entries