Merlin B38
The following example are not correct in the api doc.
// get the first key of the string
String str = "This is a test";
CollationElementIterator c =
new CollationElementIterator(str, 0, str.length(), Collator.getInstance());
int primaryOrder = CollationElementIterator.primaryOrder(c->next());
The class is a final class and can't be constructed this way. And c->next() is C++ term not java.
bae-chul.kim@eng 2000-10-27
The following example are not correct in the api doc.
// get the first key of the string
String str = "This is a test";
CollationElementIterator c =
new CollationElementIterator(str, 0, str.length(), Collator.getInstance());
int primaryOrder = CollationElementIterator.primaryOrder(c->next());
The class is a final class and can't be constructed this way. And c->next() is C++ term not java.
bae-chul.kim@eng 2000-10-27