code: public static boolean containsUid(IdRange[] idRanges, long uid) {
          if (null != idRanges && idRanges.length > 0) {
              for (IdRange range : idRanges) {
                  if (range.includes(uid)) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Checks if ranges contain the uid
  
  @param idRanges the id ranges
  @param uid      the uid
  @return true, if ranges contain given uid