code: protected int getEntryTypeInt(int flags) {
  
          for (int i = 0; i < getTypesInt().length; i++) {
              if ((flags & getTypesInt()[i]) > 0) {
                  return i;
              }
          }
          return -1;
      }
docs: Determines the int type of the current access control entry.<p>
  
  @param flags the value of the current flags
  @return int representation of the ace type as int