public static Set<RxBlePhyImpl> fromInterface(Set<RxBlePhy> phys) {
        Set<RxBlePhyImpl> result = new HashSet<>();
        for (RxBlePhy phy : phys) {
            int value = phy.getValue();
            int mask = phy.getMask();
            if (phy.getClass() == RxBlePhyImpl.class && BUILTIN_VALUES.contains(phy)) {
                result.add((RxBlePhyImpl) phy);
            } else {
                RxBleLog.w("Using a custom RxBlePhy with value=%d, mask=%d. Please consider making a PR to the library.", value, mask);
                result.add(new RxBlePhyImpl(mask, value));
            }
        }
        return result;
    }
Function used to convert the specified enum set to the equivalent values mask.

@param set The enum set to compute the values mask for.

@return If the set is NULL, empty, then the default value mask, RxBlePhy.PHY_1M, is returned.
Otherwise, the resulting values mask is returned.
rxandroidble/src/main/java/com/polidea/rxandroidble2/internal/RxBlePhyImpl.java