code: private static int getMask(int strength) {
          switch (strength) {
          case Collator.PRIMARY:
              return PRIMARYORDERMASK;
          case Collator.SECONDARY:
              return SECONDARYORDERMASK | PRIMARYORDERMASK;
          default:
              return TERTIARYORDERMASK | SECONDARYORDERMASK | PRIMARYORDERMASK;
          }
      }
docs: Getting the mask for collation strength
  @param strength collation strength
  @return collation element mask