| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final boolean | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private static final int | |
| private static final int | |
| private static final int | DISTANCE_IS_FINAL
Distance value bit flag, set by trieNext(). |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final int | DISTANCE_SKIP_SCRIPT
Distance value bit flag, set by the builder. |
| public static final int | END_OF_SUBTAG
Bit flag used on the last character of a subtag in the trie. |
| private static final int | |
| private static final int | |
| public static final LocaleDistance | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private final int | |
| private final Set | paradigmLSRs
Used to get the paradigm region for a cluster, if there is one. |
| private final String[] | |
| private final byte[] | regionToPartitionsIndex
Maps each region to zero or more single-character partitions. |
| private final BytesTrie |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getBestIndexAndDistance(LSR desired, LSR[] supportedLSRs, int supportedLSRsLength, int shiftedThreshold, LocaleMatcher.
Finds the supported LSR with the smallest distance from the desired one. |
| public int | |
| pack-priv int | |
| public int | |
| private static final int | |
| public static final double | |
| public static final int | |
| private static final int | |
| public static final int | |
| private static final int | getRegionPartitionsDistance(BytesTrie iter, long startState, String desiredPartitions, String supportedPartitions, int threshold)
|
| public static final int | |
| private boolean | |
| public boolean | |
| private String | |
| public static final int | |
| public int | testOnlyDistance(ULocale desired, ULocale supported, int threshold, LocaleMatcher.
|
| public Map | |
| public void | |
| public String | |
| private static final int |
| ABOVE_THRESHOLD | back to summary |
|---|---|
| private static final int ABOVE_THRESHOLD | |
| DEBUG_OUTPUT | back to summary |
|---|---|
| private static final boolean DEBUG_OUTPUT | |
| defaultDemotionPerDesiredLocale | back to summary |
|---|---|
| private final int defaultDemotionPerDesiredLocale | |
| defaultLanguageDistance | back to summary |
|---|---|
| private final int defaultLanguageDistance | |
| defaultRegionDistance | back to summary |
|---|---|
| private final int defaultRegionDistance | |
| defaultScriptDistance | back to summary |
|---|---|
| private final int defaultScriptDistance | |
| DISTANCE_FRACTION_MASK | back to summary |
|---|---|
| private static final int DISTANCE_FRACTION_MASK | |
| DISTANCE_INT_SHIFT | back to summary |
|---|---|
| private static final int DISTANCE_INT_SHIFT | |
| DISTANCE_IS_FINAL | back to summary |
|---|---|
| private static final int DISTANCE_IS_FINAL Distance value bit flag, set by trieNext(). | |
| DISTANCE_IS_FINAL_OR_SKIP_SCRIPT | back to summary |
|---|---|
| private static final int DISTANCE_IS_FINAL_OR_SKIP_SCRIPT | |
| DISTANCE_MASK | back to summary |
|---|---|
| private static final int DISTANCE_MASK | |
| DISTANCE_SHIFT | back to summary |
|---|---|
| private static final int DISTANCE_SHIFT | |
| DISTANCE_SKIP_SCRIPT | back to summary |
|---|---|
| public static final int DISTANCE_SKIP_SCRIPT Distance value bit flag, set by the builder. | |
| END_OF_SUBTAG | back to summary |
|---|---|
| public static final int END_OF_SUBTAG Bit flag used on the last character of a subtag in the trie. Must be set consistently by the builder and the lookup code. | |
| INDEX_NEG_1 | back to summary |
|---|---|
| private static final int INDEX_NEG_1 | |
| INDEX_SHIFT | back to summary |
|---|---|
| private static final int INDEX_SHIFT | |
| INSTANCE | back to summary |
|---|---|
| public static final LocaleDistance INSTANCE | |
| IX_DEF_LANG_DISTANCE | back to summary |
|---|---|
| public static final int IX_DEF_LANG_DISTANCE | |
| IX_DEF_REGION_DISTANCE | back to summary |
|---|---|
| public static final int IX_DEF_REGION_DISTANCE | |
| IX_DEF_SCRIPT_DISTANCE | back to summary |
|---|---|
| public static final int IX_DEF_SCRIPT_DISTANCE | |
| IX_LIMIT | back to summary |
|---|---|
| public static final int IX_LIMIT | |
| IX_MIN_REGION_DISTANCE | back to summary |
|---|---|
| public static final int IX_MIN_REGION_DISTANCE | |
| minRegionDistance | back to summary |
|---|---|
| private final int minRegionDistance | |
| paradigmLSRs | back to summary |
|---|---|
| private final Set<LSR> paradigmLSRs Used to get the paradigm region for a cluster, if there is one. | |
| partitionArrays | back to summary |
|---|---|
| private final String[] partitionArrays | |
| regionToPartitionsIndex | back to summary |
|---|---|
| private final byte[] regionToPartitionsIndex Maps each region to zero or more single-character partitions. | |
| trie | back to summary |
|---|---|
| private final BytesTrie trie | |
| LocaleDistance | back to summary |
|---|---|
| private LocaleDistance(LocaleDistance. | |
| getBestIndexAndDistance | back to summary |
|---|---|
| public int getBestIndexAndDistance(LSR desired, LSR[] supportedLSRs, int supportedLSRsLength, int shiftedThreshold, LocaleMatcher. Finds the supported LSR with the smallest distance from the desired one. Equivalent LSR subtags must be normalized into a canonical form. Returns the index of the lowest-distance supported LSR in the high bits (negative if none has a distance below the threshold), and its distance (0..ABOVE_THRESHOLD) in the low bits. | |
| getDefaultDemotionPerDesiredLocale | back to summary |
|---|---|
| public int getDefaultDemotionPerDesiredLocale() | |
| getDefaultRegionDistance | back to summary |
|---|---|
| pack-priv int getDefaultRegionDistance() | |
| getDefaultScriptDistance | back to summary |
|---|---|
| public int getDefaultScriptDistance() | |
| getDesSuppScriptDistance | back to summary |
|---|---|
| private static final int getDesSuppScriptDistance(BytesTrie iter, long startState, String desired, String supported) | |
| getDistanceDouble | back to summary |
|---|---|
| public static final double getDistanceDouble(int indexAndDistance) | |
| getDistanceFloor | back to summary |
|---|---|
| public static final int getDistanceFloor(int indexAndDistance) | |
| getFallbackRegionDistance | back to summary |
|---|---|
| private static final int getFallbackRegionDistance(BytesTrie iter, long startState) | |
| getIndex | back to summary |
|---|---|
| public static final int getIndex(int indexAndDistance) | |
| getRegionPartitionsDistance | back to summary |
|---|---|
| private static final int getRegionPartitionsDistance(BytesTrie iter, long startState, String desiredPartitions, String supportedPartitions, int threshold) | |
| getShiftedDistance | back to summary |
|---|---|
| public static final int getShiftedDistance(int indexAndDistance) | |
| isMatch | back to summary |
|---|---|
| private boolean isMatch(LSR desired, LSR supported, int shiftedThreshold, LocaleMatcher. | |
| isParadigmLSR | back to summary |
|---|---|
| public boolean isParadigmLSR(LSR lsr) | |
| partitionsForRegion | back to summary |
|---|---|
| private String partitionsForRegion(LSR lsr) | |
| shiftDistance | back to summary |
|---|---|
| public static final int shiftDistance(int distance) | |
| testOnlyDistance | back to summary |
|---|---|
| public int testOnlyDistance(ULocale desired, ULocale supported, int threshold, LocaleMatcher. | |
| testOnlyGetDistanceTable | back to summary |
|---|---|
| public Map | |
| testOnlyPrintDistanceTable | back to summary |
|---|---|
| public void testOnlyPrintDistanceTable() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| trieNext | back to summary |
|---|---|
| private static final int trieNext(BytesTrie iter, String s, boolean wantValue) | |
| Modifier and Type | Field and Description |
|---|---|
| public int[] | |
| public Set | |
| public String[] | |
| public byte[] | |
| public byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| private static UResource. | |
| public int | |
| public static LocaleDistance. |
| distances | back to summary |
|---|---|
| public int[] distances | |
| paradigmLSRs | back to summary |
|---|---|
| public Set<LSR> paradigmLSRs | |
| partitionArrays | back to summary |
|---|---|
| public String[] partitionArrays | |
| regionToPartitionsIndex | back to summary |
|---|---|
| public byte[] regionToPartitionsIndex | |
| trie | back to summary |
|---|---|
| public byte[] trie | |
| Data | back to summary |
|---|---|
| public Data(byte[] trie, byte[] regionToPartitionsIndex, String[] partitionArrays, Set<LSR> paradigmLSRs, int[] distances) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getValue | back to summary |
|---|---|
| private static UResource. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| load | back to summary |
|---|---|
| public static LocaleDistance. | |