code: public static JinxConstants.Perms flickrPermsIdToPerms(int id) {
          JinxConstants.Perms perms;
          switch (id) {
              case 0:
                  perms = JinxConstants.Perms.nobody;
                  break;
              case 1:
                  perms = JinxConstants.Perms.friendsAndFamily;
                  break;
              case 2:
                  perms = JinxConstants.Perms.contacts;
                  break;
              case 3:
                  perms = JinxConstants.Perms.everybody;
                  break;
              default:
                  perms = null;
                  break;
          }
          return perms;
      }
docs: Convert a numeric Flickr permission id to corresponding {@link net.jeremybrooks.jinx.JinxConstants.Perms} enum.
  
  @param id Flickr permission id.
  @return corresponding Perms, or null if the parameter is not a valid Flickr perms id.