Java Doc for Collator.java in  » Apache-Harmony-Java-SE » java-package » java » text » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.text.Collator

All known Subclasses:   java.text.RuleBasedCollator,
Collator
abstract public class Collator implements Comparator<Object>,Cloneable(Code)
Collator is an abstract class which is the root of classes which provide Locale specific String comparison to determine their ordering with respect to each other.


Field Summary
final public static  intCANONICAL_DECOMPOSITION
     Constant used to specify the decomposition rule.
final static  intEQUAL
    
final public static  intFULL_DECOMPOSITION
     Constant used to specify the decomposition rule.
final static  intGREATER
    
final public static  intIDENTICAL
     Constant used to specify the collation strength.
final static  intLESS
    
final public static  intNO_DECOMPOSITION
     Constant used to specify the decomposition rule.
final public static  intPRIMARY
     Constant used to specify the collation strength.
final public static  intSECONDARY
     Constant used to specify the collation strength.
final public static  intTERTIARY
     Constant used to specify the collation strength.
 com.ibm.icu.text.CollatoricuColl
    

Constructor Summary
 Collator(com.ibm.icu.text.Collator wrapper)
    
protected  Collator()
     Constructs a new instance of this Collator.

Method Summary
public  Objectclone()
     Answers a new Collator with the same decomposition rule and strength value as this Collator.
public  intcompare(Object object1, Object object2)
     Compares the two objects to determine their relative ordering.
abstract public  intcompare(String string1, String string2)
     Compares the two Strings to determine their relative ordering.
public  booleanequals(Object object)
     Compares the specified object to this Collator and answer if they are equal.
public  booleanequals(String string1, String string2)
     Compares the two Strings using the collation rules to determine if they are equal.
public static  Locale[]getAvailableLocales()
     Gets the list of installed Locales which support Collator.
abstract public  CollationKeygetCollationKey(String string)
     Answers a CollationKey for the specified String for this Collator with the current decomposition rule and strength value.
Parameters:
  string - the collation key.
public  intgetDecomposition()
     Answers the decomposition rule for this Collator.
public static  CollatorgetInstance()
     Answers a Collator instance which is appropriate for the default Locale.
public static  CollatorgetInstance(Locale locale)
     Answers a Collator instance which is appropriate for the specified Locale.
public  intgetStrength()
     Answers the strength value for this Collator.
abstract public  inthashCode()
     Answers an integer hash code for the receiver.
public  voidsetDecomposition(int value)
     Sets the decomposition rule for this Collator.
public  voidsetStrength(int value)
     Sets the strength value for this Collator.

Field Detail
CANONICAL_DECOMPOSITION
final public static int CANONICAL_DECOMPOSITION(Code)
Constant used to specify the decomposition rule.



EQUAL
final static int EQUAL(Code)



FULL_DECOMPOSITION
final public static int FULL_DECOMPOSITION(Code)
Constant used to specify the decomposition rule.



GREATER
final static int GREATER(Code)



IDENTICAL
final public static int IDENTICAL(Code)
Constant used to specify the collation strength.



LESS
final static int LESS(Code)



NO_DECOMPOSITION
final public static int NO_DECOMPOSITION(Code)
Constant used to specify the decomposition rule.



PRIMARY
final public static int PRIMARY(Code)
Constant used to specify the collation strength.



SECONDARY
final public static int SECONDARY(Code)
Constant used to specify the collation strength.



TERTIARY
final public static int TERTIARY(Code)
Constant used to specify the collation strength.



icuColl
com.ibm.icu.text.Collator icuColl(Code)




Constructor Detail
Collator
Collator(com.ibm.icu.text.Collator wrapper)(Code)



Collator
protected Collator()(Code)
Constructs a new instance of this Collator.




Method Detail
clone
public Object clone()(Code)
Answers a new Collator with the same decomposition rule and strength value as this Collator. a shallow copy of this Collator
See Also:   java.lang.Cloneable



compare
public int compare(Object object1, Object object2)(Code)
Compares the two objects to determine their relative ordering. The objects must be Strings.
Parameters:
  object1 - the first String to compare
Parameters:
  object2 - the second String to compare an int < 0 if object1 is less than object2, 0 if they are equal,and > 0 if object1 is greater than object2
exception:
  ClassCastException - when the objects are not Strings



compare
abstract public int compare(String string1, String string2)(Code)
Compares the two Strings to determine their relative ordering.
Parameters:
  string1 - the first String to compare
Parameters:
  string2 - the second String to compare an int < 0 if string1 is less than string2, 0 if they are equal,and > 0 if string1 is greater than string2



equals
public boolean equals(Object object)(Code)
Compares the specified object to this Collator and answer if they are equal. The object must be an instance of Collator and have the same strength and decomposition values.
Parameters:
  object - the object to compare with this object true if the specified object is equal to this Collator, falseotherwise
See Also:   Collator.hashCode



equals
public boolean equals(String string1, String string2)(Code)
Compares the two Strings using the collation rules to determine if they are equal.
Parameters:
  string1 - the first String to compare
Parameters:
  string2 - the second String to compare true if the strings are equal using the collation rules, falseotherwise



getAvailableLocales
public static Locale[] getAvailableLocales()(Code)
Gets the list of installed Locales which support Collator. an array of Locale



getCollationKey
abstract public CollationKey getCollationKey(String string)(Code)
Answers a CollationKey for the specified String for this Collator with the current decomposition rule and strength value.
Parameters:
  string - the collation key. a CollationKey



getDecomposition
public int getDecomposition()(Code)
Answers the decomposition rule for this Collator. the decomposition rule, either NO_DECOMPOSITION,CANONICAL_DECOMPOSITION or FULL_DECOMPOSITION



getInstance
public static Collator getInstance()(Code)
Answers a Collator instance which is appropriate for the default Locale. a Collator



getInstance
public static Collator getInstance(Locale locale)(Code)
Answers a Collator instance which is appropriate for the specified Locale.
Parameters:
  locale - the Locale a Collator



getStrength
public int getStrength()(Code)
Answers the strength value for this Collator. the strength value, either PRIMARY, SECONDARY, TERTIARY, orIDENTICAL



hashCode
abstract public int hashCode()(Code)
Answers an integer hash code for the receiver. Objects which are equal answer the same value for this method. the receiver's hash
See Also:   Collator.equals(Object)
See Also:   Collator.equals(String,String)



setDecomposition
public void setDecomposition(int value)(Code)
Sets the decomposition rule for this Collator.
Parameters:
  value - the decomposition rule, either NO_DECOMPOSITION,CANONICAL_DECOMPOSITION or FULL_DECOMPOSITION
exception:
  IllegalArgumentException - when the decomposition rule is not valid



setStrength
public void setStrength(int value)(Code)
Sets the strength value for this Collator.
Parameters:
  value - the strength value, either PRIMARY, SECONDARY, TERTIARY, orIDENTICAL
exception:
  IllegalArgumentException - when the strength value is not valid



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.