summaryrefslogtreecommitdiffstats
path: root/libjava/java/text/CollationElementIterator.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-06 20:19:31 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-06 20:19:31 +0000
commit439314ef529bc50970c4a25a62fa1ef2ab87b0c9 (patch)
treed3a7374affb37e8d07f91069a4b743b8079e0e0d /libjava/java/text/CollationElementIterator.java
parent23c35826797d5e99bbd15ebd8611476ab67547e2 (diff)
downloadppe42-gcc-439314ef529bc50970c4a25a62fa1ef2ab87b0c9.tar.gz
ppe42-gcc-439314ef529bc50970c4a25a62fa1ef2ab87b0c9.zip
2004-01-06 Michael Koch <konqueror@gmx.de>
* java/text/CollationElementIterator.java: Reformated. (CollationElementIterator): Changed order of arguments. * java/text/RuleBasedCollator.java (RuleBasedCollator): Merged class documentation. (CollationElement): Added documentation. (compare): Reformated, renamed arguments. (equals): Likewise. (getCollationElementIterator): Likewise. (getCollationKey): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75484 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/text/CollationElementIterator.java')
-rw-r--r--libjava/java/text/CollationElementIterator.java23
1 files changed, 12 insertions, 11 deletions
diff --git a/libjava/java/text/CollationElementIterator.java b/libjava/java/text/CollationElementIterator.java
index 9eb17a50148..bcb4f6b89c2 100644
--- a/libjava/java/text/CollationElementIterator.java
+++ b/libjava/java/text/CollationElementIterator.java
@@ -53,6 +53,7 @@ package java.text;
*
* @author Aaron M. Renn <arenn@urbanophile.com>
* @author Tom Tromey <tromey@cygnus.com>
+ * @author Guilhem Lavaux <guilhem.lavaux@free.fr>
*/
public final class CollationElementIterator
{
@@ -89,15 +90,17 @@ public final class CollationElementIterator
* @param collator The <code>RuleBasedCollation</code> used for calculating collation values
* @param text The <code>String</code> to iterate over.
*/
- CollationElementIterator (String text, RuleBasedCollator collator)
+ CollationElementIterator(RuleBasedCollator collator, String text)
{
- setText (text);
this.collator = collator;
+
+ setText (text);
}
/**
- * This method returns the collation ordering value of the next character
- * in the string. This method will return <code>NULLORDER</code> if the
+ * This method returns the collation ordering value of the next character sequence
+ * in the string (it may be an extended character following collation rules).
+ * This method will return <code>NULLORDER</code> if the
* end of the string was reached.
*
* @return The collation ordering value.
@@ -118,7 +121,7 @@ public final class CollationElementIterator
*
* @return The primary order value of the specified collation value. This is the high 16 bits.
*/
- public static final int primaryOrder (int order)
+ public static final int primaryOrder(int order)
{
// From the JDK 1.2 spec.
return order >>> 16;
@@ -141,7 +144,7 @@ public final class CollationElementIterator
*
* @return The secondary order value of the specified collation value. This is the bits 8-15.
*/
- public static final short secondaryOrder (int order)
+ public static final short secondaryOrder(int order)
{
// From the JDK 1.2 spec.
return (short) ((order >>> 8) & 255);
@@ -155,7 +158,7 @@ public final class CollationElementIterator
*
* @return The tertiary order value of the specified collation value. This is the low eight bits.
*/
- public static final short tertiaryOrder (int order)
+ public static final short tertiaryOrder(int order)
{
// From the JDK 1.2 spec.
return (short) (order & 255);
@@ -169,7 +172,7 @@ public final class CollationElementIterator
*
* @since 1.2
*/
- public void setText (String text)
+ public void setText(String text)
{
this.text = text;
this.index = 0;
@@ -189,6 +192,4 @@ public final class CollationElementIterator
{
return index;
}
-
-} // class CollationElementIterator
-
+}
OpenPOWER on IntegriCloud