code: public List<Grant> getGrantsAsList() {
          checkState();
          if (grantList == null) {
              if (grantSet == null) {
                  grantList = new LinkedList<Grant>();
              } else {
                  grantList = new LinkedList<Grant>(grantSet);
                  grantSet = null;
              }
          }
  
          return grantList;
      }
docs: Gets the list of {@link Grant} objects in this access control list (ACL).
  
  @return The list of {@link Grant} objects in this ACL.