Repository navigation
Expand file tree
/
Copy pathCollator.html
More file actions
1064 lines (1060 loc) · 46.9 KB
/
Copy pathCollator.html
File metadata and controls
1064 lines (1060 loc) · 46.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Collator (Java SE 12 & JDK 12 )</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="java.text.Collator class">
<meta name="keywords" content="PRIMARY">
<meta name="keywords" content="SECONDARY">
<meta name="keywords" content="TERTIARY">
<meta name="keywords" content="IDENTICAL">
<meta name="keywords" content="NO_DECOMPOSITION">
<meta name="keywords" content="CANONICAL_DECOMPOSITION">
<meta name="keywords" content="FULL_DECOMPOSITION">
<meta name="keywords" content="getInstance()">
<meta name="keywords" content="compare()">
<meta name="keywords" content="getCollationKey()">
<meta name="keywords" content="equals()">
<meta name="keywords" content="getStrength()">
<meta name="keywords" content="setStrength()">
<meta name="keywords" content="getDecomposition()">
<meta name="keywords" content="setDecomposition()">
<meta name="keywords" content="getAvailableLocales()">
<meta name="keywords" content="clone()">
<meta name="keywords" content="hashCode()">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
<script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Collator (Java SE 12 & JDK 12 )";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":6,"i3":10,"i4":10,"i5":9,"i6":6,"i7":10,"i8":9,"i9":9,"i10":10,"i11":6,"i12":10,"i13":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../index.html">Overview</a></li>
<li><a href="../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Collator.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 & JDK 12</strong> </div></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding"> </div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="moduleLabelInType">Module</span> <a href="../../module-summary.html">java.base</a></div>
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">java.text</a></div>
<h2 title="Class Collator" class="title">Class Collator</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="../lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>java.text.Collator</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="../lang/Cloneable.html" title="interface in java.lang">Cloneable</a></code>, <code><a href="../util/Comparator.html" title="interface in java.util">Comparator</a><<a href="../lang/Object.html" title="class in java.lang">Object</a>></code></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="RuleBasedCollator.html" title="class in java.text">RuleBasedCollator</a></code></dd>
</dl>
<hr>
<pre>public abstract class <span class="typeNameLabel">Collator</span>
extends <a href="../lang/Object.html" title="class in java.lang">Object</a>
implements <a href="../util/Comparator.html" title="interface in java.util">Comparator</a><<a href="../lang/Object.html" title="class in java.lang">Object</a>>, <a href="../lang/Cloneable.html" title="interface in java.lang">Cloneable</a></pre>
<div class="block">The <code>Collator</code> class performs locale-sensitive
<code>String</code> comparison. You use this class to build
searching and sorting routines for natural language text.
<p>
<code>Collator</code> is an abstract base class. Subclasses
implement specific collation strategies. One subclass,
<code>RuleBasedCollator</code>, is currently provided with
the Java Platform and is applicable to a wide set of languages. Other
subclasses may be created to handle more specialized needs.
<p>
Like other locale-sensitive classes, you can use the static
factory method, <code>getInstance</code>, to obtain the appropriate
<code>Collator</code> object for a given locale. You will only need
to look at the subclasses of <code>Collator</code> if you need
to understand the details of a particular collation strategy or
if you need to modify that strategy.
<p>
The following example shows how to compare two strings using
the <code>Collator</code> for the default locale.
<blockquote>
<pre><code>
// Compare two strings in the default locale
Collator myCollator = Collator.getInstance();
if( myCollator.compare("abc", "ABC") < 0 )
System.out.println("abc is less than ABC");
else
System.out.println("abc is greater than or equal to ABC");
</code></pre>
</blockquote>
<p>
You can set a <code>Collator</code>'s <em>strength</em> property
to determine the level of difference considered significant in
comparisons. Four strengths are provided: <code>PRIMARY</code>,
<code>SECONDARY</code>, <code>TERTIARY</code>, and <code>IDENTICAL</code>.
The exact assignment of strengths to language features is
locale dependent. For example, in Czech, "e" and "f" are considered
primary differences, while "e" and "ě" are secondary differences,
"e" and "E" are tertiary differences and "e" and "e" are identical.
The following shows how both case and accents could be ignored for
US English.
<blockquote>
<pre>
//Get the Collator for US English and set its strength to PRIMARY
Collator usCollator = Collator.getInstance(Locale.US);
usCollator.setStrength(Collator.PRIMARY);
if( usCollator.compare("abc", "ABC") == 0 ) {
System.out.println("Strings are equivalent");
}
</pre>
</blockquote>
<p>
For comparing <code>String</code>s exactly once, the <code>compare</code>
method provides the best performance. When sorting a list of
<code>String</code>s however, it is generally necessary to compare each
<code>String</code> multiple times. In this case, <code>CollationKey</code>s
provide better performance. The <code>CollationKey</code> class converts
a <code>String</code> to a series of bits that can be compared bitwise
against other <code>CollationKey</code>s. A <code>CollationKey</code> is
created by a <code>Collator</code> object for a given <code>String</code>.
<br>
<strong>Note:</strong> <code>CollationKey</code>s from different
<code>Collator</code>s can not be compared. See the class description
for <a href="CollationKey.html" title="class in java.text"><code>CollationKey</code></a>
for an example using <code>CollationKey</code>s.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.1</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="RuleBasedCollator.html" title="class in java.text"><code>RuleBasedCollator</code></a>,
<a href="CollationKey.html" title="class in java.text"><code>CollationKey</code></a>,
<a href="CollationElementIterator.html" title="class in java.text"><code>CollationElementIterator</code></a>,
<a href="../util/Locale.html" title="class in java.util"><code>Locale</code></a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<div class="memberSummary">
<table>
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#CANONICAL_DECOMPOSITION">CANONICAL_DECOMPOSITION</a></span></code></th>
<td class="colLast">
<div class="block">Decomposition mode value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#FULL_DECOMPOSITION">FULL_DECOMPOSITION</a></span></code></th>
<td class="colLast">
<div class="block">Decomposition mode value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#IDENTICAL">IDENTICAL</a></span></code></th>
<td class="colLast">
<div class="block">Collator strength value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#NO_DECOMPOSITION">NO_DECOMPOSITION</a></span></code></th>
<td class="colLast">
<div class="block">Decomposition mode value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PRIMARY">PRIMARY</a></span></code></th>
<td class="colLast">
<div class="block">Collator strength value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SECONDARY">SECONDARY</a></span></code></th>
<td class="colLast">
<div class="block">Collator strength value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TERTIARY">TERTIARY</a></span></code></th>
<td class="colLast">
<div class="block">Collator strength value.</div>
</td>
</tr>
</tbody>
</table>
</div>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<div class="memberSummary">
<table>
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colSecond" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">Collator</a></span>()</code></th>
<td class="colLast">
<div class="block">Default constructor.</div>
</td>
</tr>
</tbody>
</table>
</div>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t1" class="tableTab" onclick="show(1);">Static Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t3" class="tableTab" onclick="show(4);">Abstract Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../lang/Object.html" title="class in java.lang">Object</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clone()">clone</a></span>()</code></th>
<td class="colLast">
<div class="block">Overrides Cloneable</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#compare(java.lang.Object,java.lang.Object)">compare</a></span>​(<a href="../lang/Object.html" title="class in java.lang">Object</a> o1,
<a href="../lang/Object.html" title="class in java.lang">Object</a> o2)</code></th>
<td class="colLast">
<div class="block">Compares its two arguments for order.</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>abstract int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#compare(java.lang.String,java.lang.String)">compare</a></span>​(<a href="../lang/String.html" title="class in java.lang">String</a> source,
<a href="../lang/String.html" title="class in java.lang">String</a> target)</code></th>
<td class="colLast">
<div class="block">Compares the source string to the target string according to the
collation rules for this Collator.</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object)">equals</a></span>​(<a href="../lang/Object.html" title="class in java.lang">Object</a> that)</code></th>
<td class="colLast">
<div class="block">Compares the equality of two Collators.</div>
</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.String,java.lang.String)">equals</a></span>​(<a href="../lang/String.html" title="class in java.lang">String</a> source,
<a href="../lang/String.html" title="class in java.lang">String</a> target)</code></th>
<td class="colLast">
<div class="block">Convenience method for comparing the equality of two strings based on
this Collator's collation rules.</div>
</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>static <a href="../util/Locale.html" title="class in java.util">Locale</a>[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAvailableLocales()">getAvailableLocales</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an array of all locales for which the
<code>getInstance</code> methods of this class can return
localized instances.</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>abstract <a href="CollationKey.html" title="class in java.text">CollationKey</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCollationKey(java.lang.String)">getCollationKey</a></span>​(<a href="../lang/String.html" title="class in java.lang">String</a> source)</code></th>
<td class="colLast">
<div class="block">Transforms the String into a series of bits that can be compared bitwise
to other CollationKeys.</div>
</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDecomposition()">getDecomposition</a></span>()</code></th>
<td class="colLast">
<div class="block">Get the decomposition mode of this Collator.</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>static <a href="Collator.html" title="class in java.text">Collator</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInstance()">getInstance</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Collator for the current default locale.</div>
</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>static <a href="Collator.html" title="class in java.text">Collator</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInstance(java.util.Locale)">getInstance</a></span>​(<a href="../util/Locale.html" title="class in java.util">Locale</a> desiredLocale)</code></th>
<td class="colLast">
<div class="block">Gets the Collator for the desired locale.</div>
</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStrength()">getStrength</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns this Collator's strength property.</div>
</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>abstract int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hashCode()">hashCode</a></span>()</code></th>
<td class="colLast">
<div class="block">Generates the hash code for this Collator.</div>
</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDecomposition(int)">setDecomposition</a></span>​(int decompositionMode)</code></th>
<td class="colLast">
<div class="block">Set the decomposition mode of this Collator.</div>
</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStrength(int)">setStrength</a></span>​(int newStrength)</code></th>
<td class="colLast">
<div class="block">Sets this Collator's strength property.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods declared in class java.lang.<a href="../lang/Object.html" title="class in java.lang">Object</a></h3>
<code><a href="../lang/Object.html#finalize()">finalize</a>, <a href="../lang/Object.html#getClass()">getClass</a>, <a href="../lang/Object.html#notify()">notify</a>, <a href="../lang/Object.html#notifyAll()">notifyAll</a>, <a href="../lang/Object.html#toString()">toString</a>, <a href="../lang/Object.html#wait()">wait</a>, <a href="../lang/Object.html#wait(long)">wait</a>, <a href="../lang/Object.html#wait(long,int)">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.util.Comparator">
<!-- -->
</a>
<h3>Methods declared in interface java.util.<a href="../util/Comparator.html" title="interface in java.util">Comparator</a></h3>
<code><a href="../util/Comparator.html#reversed()">reversed</a>, <a href="../util/Comparator.html#thenComparing(java.util.Comparator)">thenComparing</a>, <a href="../util/Comparator.html#thenComparing(java.util.function.Function)">thenComparing</a>, <a href="../util/Comparator.html#thenComparing(java.util.function.Function,java.util.Comparator)">thenComparing</a>, <a href="../util/Comparator.html#thenComparingDouble(java.util.function.ToDoubleFunction)">thenComparingDouble</a>, <a href="../util/Comparator.html#thenComparingInt(java.util.function.ToIntFunction)">thenComparingInt</a>, <a href="../util/Comparator.html#thenComparingLong(java.util.function.ToLongFunction)">thenComparingLong</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="PRIMARY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PRIMARY</h4>
<pre>public static final int PRIMARY</pre>
<div class="block">Collator strength value. When set, only PRIMARY differences are
considered significant during comparison. The assignment of strengths
to language features is locale dependent. A common example is for
different base letters ("a" vs "b") to be considered a PRIMARY difference.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setStrength(int)"><code>setStrength(int)</code></a>,
<a href="#getStrength()"><code>getStrength()</code></a>,
<a href="../../../constant-values.html#java.text.Collator.PRIMARY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="SECONDARY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SECONDARY</h4>
<pre>public static final int SECONDARY</pre>
<div class="block">Collator strength value. When set, only SECONDARY and above differences are
considered significant during comparison. The assignment of strengths
to language features is locale dependent. A common example is for
different accented forms of the same base letter ("a" vs "ä") to be
considered a SECONDARY difference.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setStrength(int)"><code>setStrength(int)</code></a>,
<a href="#getStrength()"><code>getStrength()</code></a>,
<a href="../../../constant-values.html#java.text.Collator.SECONDARY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="TERTIARY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TERTIARY</h4>
<pre>public static final int TERTIARY</pre>
<div class="block">Collator strength value. When set, only TERTIARY and above differences are
considered significant during comparison. The assignment of strengths
to language features is locale dependent. A common example is for
case differences ("a" vs "A") to be considered a TERTIARY difference.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setStrength(int)"><code>setStrength(int)</code></a>,
<a href="#getStrength()"><code>getStrength()</code></a>,
<a href="../../../constant-values.html#java.text.Collator.TERTIARY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="IDENTICAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IDENTICAL</h4>
<pre>public static final int IDENTICAL</pre>
<div class="block">Collator strength value. When set, all differences are
considered significant during comparison. The assignment of strengths
to language features is locale dependent. A common example is for control
characters ("\u0001" vs "\u0002") to be considered equal at the
PRIMARY, SECONDARY, and TERTIARY levels but different at the IDENTICAL
level. Additionally, differences between pre-composed accents such as
"\u00C0" (A-grave) and combining accents such as "A\u0300"
(A, combining-grave) will be considered significant at the IDENTICAL
level if decomposition is set to NO_DECOMPOSITION.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#java.text.Collator.IDENTICAL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="NO_DECOMPOSITION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NO_DECOMPOSITION</h4>
<pre>public static final int NO_DECOMPOSITION</pre>
<div class="block">Decomposition mode value. With NO_DECOMPOSITION
set, accented characters will not be decomposed for collation. This
is the default setting and provides the fastest collation but
will only produce correct results for languages that do not use accents.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getDecomposition()"><code>getDecomposition()</code></a>,
<a href="#setDecomposition(int)"><code>setDecomposition(int)</code></a>,
<a href="../../../constant-values.html#java.text.Collator.NO_DECOMPOSITION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="CANONICAL_DECOMPOSITION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CANONICAL_DECOMPOSITION</h4>
<pre>public static final int CANONICAL_DECOMPOSITION</pre>
<div class="block">Decomposition mode value. With CANONICAL_DECOMPOSITION
set, characters that are canonical variants according to Unicode
standard will be decomposed for collation. This should be used to get
correct collation of accented characters.
<p>
CANONICAL_DECOMPOSITION corresponds to Normalization Form D as
described in
<a href="http://www.unicode.org/unicode/reports/tr15/tr15-23.html">Unicode
Technical Report #15</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getDecomposition()"><code>getDecomposition()</code></a>,
<a href="#setDecomposition(int)"><code>setDecomposition(int)</code></a>,
<a href="../../../constant-values.html#java.text.Collator.CANONICAL_DECOMPOSITION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="FULL_DECOMPOSITION">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FULL_DECOMPOSITION</h4>
<pre>public static final int FULL_DECOMPOSITION</pre>
<div class="block">Decomposition mode value. With FULL_DECOMPOSITION
set, both Unicode canonical variants and Unicode compatibility variants
will be decomposed for collation. This causes not only accented
characters to be collated, but also characters that have special formats
to be collated with their norminal form. For example, the half-width and
full-width ASCII and Katakana characters are then collated together.
FULL_DECOMPOSITION is the most complete and therefore the slowest
decomposition mode.
<p>
FULL_DECOMPOSITION corresponds to Normalization Form KD as
described in
<a href="http://www.unicode.org/unicode/reports/tr15/tr15-23.html">Unicode
Technical Report #15</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getDecomposition()"><code>getDecomposition()</code></a>,
<a href="#setDecomposition(int)"><code>setDecomposition(int)</code></a>,
<a href="../../../constant-values.html#java.text.Collator.FULL_DECOMPOSITION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="<init>()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Collator</h4>
<pre>protected Collator()</pre>
<div class="block">Default constructor. This constructor is
protected so subclasses can get access to it. Users typically create
a Collator sub-class by calling the factory method getInstance.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getInstance()"><code>getInstance()</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="getInstance()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre class="methodSignature">public static <a href="Collator.html" title="class in java.text">Collator</a> getInstance()</pre>
<div class="block">Gets the Collator for the current default locale.
The default locale is determined by java.util.Locale.getDefault.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Collator for the default locale.(for example, en_US)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../util/Locale.html#getDefault()"><code>Locale.getDefault()</code></a></dd>
</dl>
</li>
</ul>
<a id="getInstance(java.util.Locale)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre class="methodSignature">public static <a href="Collator.html" title="class in java.text">Collator</a> getInstance​(<a href="../util/Locale.html" title="class in java.util">Locale</a> desiredLocale)</pre>
<div class="block">Gets the Collator for the desired locale.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>desiredLocale</code> - the desired locale.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Collator for the desired locale.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../util/Locale.html" title="class in java.util"><code>Locale</code></a>,
<a href="../util/ResourceBundle.html" title="class in java.util"><code>ResourceBundle</code></a></dd>
</dl>
</li>
</ul>
<a id="compare(java.lang.String,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
<pre class="methodSignature">public abstract int compare​(<a href="../lang/String.html" title="class in java.lang">String</a> source,
<a href="../lang/String.html" title="class in java.lang">String</a> target)</pre>
<div class="block">Compares the source string to the target string according to the
collation rules for this Collator. Returns an integer less than,
equal to or greater than zero depending on whether the source String is
less than, equal to or greater than the target string. See the Collator
class description for an example of use.
<p>
For a one time comparison, this method has the best performance. If a
given String will be involved in multiple comparisons, CollationKey.compareTo
has the best performance. See the Collator class description for an example
using CollationKeys.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>source</code> - the source string.</dd>
<dd><code>target</code> - the target string.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns an integer value. Value is less than zero if source is less than
target, value is zero if source and target are equal, value is greater than zero
if source is greater than target.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="CollationKey.html" title="class in java.text"><code>CollationKey</code></a>,
<a href="#getCollationKey(java.lang.String)"><code>getCollationKey(java.lang.String)</code></a></dd>
</dl>
</li>
</ul>
<a id="compare(java.lang.Object,java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
<pre class="methodSignature">public int compare​(<a href="../lang/Object.html" title="class in java.lang">Object</a> o1,
<a href="../lang/Object.html" title="class in java.lang">Object</a> o2)</pre>
<div class="block">Compares its two arguments for order. Returns a negative integer,
zero, or a positive integer as the first argument is less than, equal
to, or greater than the second.
<p>
This implementation merely returns
<code> compare((String)o1, (String)o2) </code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../util/Comparator.html#compare(T,T)">compare</a></code> in interface <code><a href="../util/Comparator.html" title="interface in java.util">Comparator</a><<a href="../lang/Object.html" title="class in java.lang">Object</a>></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>o1</code> - the first object to be compared.</dd>
<dd><code>o2</code> - the second object to be compared.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a negative integer, zero, or a positive integer as the
first argument is less than, equal to, or greater than the
second.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../lang/ClassCastException.html" title="class in java.lang">ClassCastException</a></code> - the arguments cannot be cast to Strings.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.2</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../util/Comparator.html" title="interface in java.util"><code>Comparator</code></a></dd>
</dl>
</li>
</ul>
<a id="getCollationKey(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCollationKey</h4>
<pre class="methodSignature">public abstract <a href="CollationKey.html" title="class in java.text">CollationKey</a> getCollationKey​(<a href="../lang/String.html" title="class in java.lang">String</a> source)</pre>
<div class="block">Transforms the String into a series of bits that can be compared bitwise
to other CollationKeys. CollationKeys provide better performance than
Collator.compare when Strings are involved in multiple comparisons.
See the Collator class description for an example using CollationKeys.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>source</code> - the string to be transformed into a collation key.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the CollationKey for the given String based on this Collator's collation
rules. If the source String is null, a null CollationKey is returned.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="CollationKey.html" title="class in java.text"><code>CollationKey</code></a>,
<a href="#compare(java.lang.String,java.lang.String)"><code>compare(java.lang.String, java.lang.String)</code></a></dd>
</dl>
</li>
</ul>
<a id="equals(java.lang.String,java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre class="methodSignature">public boolean equals​(<a href="../lang/String.html" title="class in java.lang">String</a> source,
<a href="../lang/String.html" title="class in java.lang">String</a> target)</pre>
<div class="block">Convenience method for comparing the equality of two strings based on
this Collator's collation rules.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>source</code> - the source string to be compared with.</dd>
<dd><code>target</code> - the target string to be compared with.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the strings are equal according to the collation
rules. false, otherwise.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#compare(java.lang.String,java.lang.String)"><code>compare(java.lang.String, java.lang.String)</code></a></dd>
</dl>
</li>
</ul>
<a id="getStrength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStrength</h4>
<pre class="methodSignature">public int getStrength()</pre>
<div class="block">Returns this Collator's strength property. The strength property determines
the minimum level of difference considered significant during comparison.
See the Collator class description for an example of use.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this Collator's current strength property.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setStrength(int)"><code>setStrength(int)</code></a>,
<a href="#PRIMARY"><code>PRIMARY</code></a>,
<a href="#SECONDARY"><code>SECONDARY</code></a>,
<a href="#TERTIARY"><code>TERTIARY</code></a>,
<a href="#IDENTICAL"><code>IDENTICAL</code></a></dd>
</dl>
</li>
</ul>
<a id="setStrength(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStrength</h4>
<pre class="methodSignature">public void setStrength​(int newStrength)</pre>
<div class="block">Sets this Collator's strength property. The strength property determines
the minimum level of difference considered significant during comparison.
See the Collator class description for an example of use.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>newStrength</code> - the new strength value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - If the new strength value is not one of
PRIMARY, SECONDARY, TERTIARY or IDENTICAL.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getStrength()"><code>getStrength()</code></a>,
<a href="#PRIMARY"><code>PRIMARY</code></a>,
<a href="#SECONDARY"><code>SECONDARY</code></a>,
<a href="#TERTIARY"><code>TERTIARY</code></a>,
<a href="#IDENTICAL"><code>IDENTICAL</code></a></dd>
</dl>
</li>
</ul>
<a id="getDecomposition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDecomposition</h4>
<pre class="methodSignature">public int getDecomposition()</pre>
<div class="block">Get the decomposition mode of this Collator. Decomposition mode
determines how Unicode composed characters are handled. Adjusting
decomposition mode allows the user to select between faster and more
complete collation behavior.
<p>The three values for decomposition mode are:
<UL>
<LI>NO_DECOMPOSITION,
<LI>CANONICAL_DECOMPOSITION
<LI>FULL_DECOMPOSITION.
</UL>
See the documentation for these three constants for a description
of their meaning.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the decomposition mode</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setDecomposition(int)"><code>setDecomposition(int)</code></a>,
<a href="#NO_DECOMPOSITION"><code>NO_DECOMPOSITION</code></a>,
<a href="#CANONICAL_DECOMPOSITION"><code>CANONICAL_DECOMPOSITION</code></a>,
<a href="#FULL_DECOMPOSITION"><code>FULL_DECOMPOSITION</code></a></dd>
</dl>
</li>
</ul>
<a id="setDecomposition(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDecomposition</h4>
<pre class="methodSignature">public void setDecomposition​(int decompositionMode)</pre>
<div class="block">Set the decomposition mode of this Collator. See getDecomposition
for a description of decomposition mode.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>decompositionMode</code> - the new decomposition mode.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - If the given value is not a valid decomposition
mode.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getDecomposition()"><code>getDecomposition()</code></a>,
<a href="#NO_DECOMPOSITION"><code>NO_DECOMPOSITION</code></a>,
<a href="#CANONICAL_DECOMPOSITION"><code>CANONICAL_DECOMPOSITION</code></a>,
<a href="#FULL_DECOMPOSITION"><code>FULL_DECOMPOSITION</code></a></dd>
</dl>
</li>
</ul>
<a id="getAvailableLocales()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAvailableLocales</h4>
<pre class="methodSignature">public static <a href="../util/Locale.html" title="class in java.util">Locale</a>[] getAvailableLocales()</pre>
<div class="block">Returns an array of all locales for which the
<code>getInstance</code> methods of this class can return
localized instances.
The returned array represents the union of locales supported
by the Java runtime and by installed
<a href="spi/CollatorProvider.html" title="class in java.text.spi"><code>CollatorProvider</code></a> implementations.
It must contain at least a Locale instance equal to
<a href="../util/Locale.html#US"><code>Locale.US</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An array of locales for which localized
<code>Collator</code> instances are available.</dd>
</dl>
</li>
</ul>
<a id="clone()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clone</h4>
<pre class="methodSignature">public <a href="../lang/Object.html" title="class in java.lang">Object</a> clone()</pre>
<div class="block">Overrides Cloneable</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../lang/Object.html#clone()">clone</a></code> in class <code><a href="../lang/Object.html" title="class in java.lang">Object</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a clone of this instance.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../lang/Cloneable.html" title="interface in java.lang"><code>Cloneable</code></a></dd>
</dl>
</li>
</ul>
<a id="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre class="methodSignature">public boolean equals​(<a href="../lang/Object.html" title="class in java.lang">Object</a> that)</pre>
<div class="block">Compares the equality of two Collators.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../util/Comparator.html#equals(java.lang.Object)">equals</a></code> in interface <code><a href="../util/Comparator.html" title="interface in java.util">Comparator</a><<a href="../lang/Object.html" title="class in java.lang">Object</a>></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../lang/Object.html#equals(java.lang.Object)">equals</a></code> in class <code><a href="../lang/Object.html" title="class in java.lang">Object</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>that</code> - the Collator to be compared with this.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if this Collator is the same as that Collator;
false otherwise.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../lang/Object.html#hashCode()"><code>Object.hashCode()</code></a>,
<a href="../util/HashMap.html" title="class in java.util"><code>HashMap</code></a></dd>
</dl>
</li>
</ul>
<a id="hashCode()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>hashCode</h4>
<pre class="methodSignature">public abstract int hashCode()</pre>
<div class="block">Generates the hash code for this Collator.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../lang/Object.html#hashCode()">hashCode</a></code> in class <code><a href="../lang/Object.html" title="class in java.lang">Object</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a hash code value for this object.</dd>