@Deprecated
    public KeywordStatus getStatus(String keyword, int offset, Set<Double> explicits, Output<Double> uniqueValue) {
        if (uniqueValue != null) {
            uniqueValue.value = null;
        }

        if (!pluralRules.getKeywords().contains(keyword)) {
            return KeywordStatus.INVALID;
        }
        Collection<Double> values = pluralRules.getAllKeywordValues(keyword);
        if (values == null) {
            return KeywordStatus.UNBOUNDED;
        }
        int originalSize = values.size();

        if (explicits == null) {
            explicits = Collections.emptySet();
        }

        // Quick check on whether there are multiple elements

        if (originalSize > explicits.size()) {
            if (originalSize == 1) {
                if (uniqueValue != null) {
                    uniqueValue.value = values.iterator().next();
                }
                return KeywordStatus.UNIQUE;
            }
            return KeywordStatus.BOUNDED;
        }

        // Compute if the quick test is insufficient.

        HashSet<Double> subtractedSet = new HashSet<Double>(values);
        for (Double explicit : explicits) {
            subtractedSet.remove(explicit - offset);
        }
        if (subtractedSet.size() == 0) {
            return KeywordStatus.SUPPRESSED;
        }

        if (uniqueValue != null && subtractedSet.size() == 1) {
            uniqueValue.value = subtractedSet.iterator().next();
        }

        return originalSize == 1 ? KeywordStatus.UNIQUE : KeywordStatus.BOUNDED;
    }
@ Deprecated public KeywordStatus getStatus ( String keyword , int offset , Set < Double > explicits , Output < Double > uniqueValue ) { if ( uniqueValue != null ) { uniqueValue . value = null ; } if ( ! pluralRules . getKeywords ( ) . contains ( keyword ) ) { return KeywordStatus . INVALID ; } Collection < Double > values = pluralRules . getAllKeywordValues ( keyword ) ; if ( values == null ) { return KeywordStatus . UNBOUNDED ; } int originalSize = values . size ( ) ; if ( explicits == null ) { explicits = Collections . emptySet ( ) ; } if ( originalSize > explicits . size ( ) ) { if ( originalSize == 1 ) { if ( uniqueValue != null ) { uniqueValue . value = values . iterator ( ) . next ( ) ; } return KeywordStatus . UNIQUE ; } return KeywordStatus . BOUNDED ; } HashSet < Double > subtractedSet = new HashSet < Double > ( values ) ; for ( Double explicit : explicits ) { subtractedSet . remove ( explicit - offset ) ; } if ( subtractedSet . size ( ) == 0 ) { return KeywordStatus . SUPPRESSED ; } if ( uniqueValue != null && subtractedSet . size ( ) == 1 ) { uniqueValue . value = subtractedSet . iterator ( ) . next ( ) ; } return originalSize == 1 ? KeywordStatus . UNIQUE : KeywordStatus . BOUNDED ; }
@deprecated This API is ICU internal only.
@hide draft / provisional / internal are hidden on Android