2003-10-15 Michael Koch <konqueror@gmx.de>

* java/text/CollationElementIterator.java
	(CollationElementIterator): Moved, documenatation added, call setText.
	(next): Reformated.
	(reset): Reformated.
	(setText): New method.
	(getOffset): New method.
	* java/text/CollationKey.java
	(getSourceString): Reformated.
	(hashCode): Reformated.
	(toByteArray): Reformated.

From-SVN: r72523
This commit is contained in:
Michael Koch 2003-10-15 14:49:30 +00:00 committed by Michael Koch
parent 51c1f28619
commit 12dc3f75be
3 changed files with 55 additions and 9 deletions

View file

@ -169,7 +169,7 @@ public final class CollationKey implements Comparable
*
* @return The source <code>String</code> for this object.
*/
public String getSourceString ()
public String getSourceString()
{
return originalText;
}
@ -181,7 +181,7 @@ public final class CollationKey implements Comparable
*
* @return A hash value for this object.
*/
public int hashCode ()
public int hashCode()
{
// We just follow BitSet instead of thinking up something new.
long h = originalText.hashCode();
@ -195,7 +195,7 @@ public final class CollationKey implements Comparable
*
* @param A byte array containing the collation bit sequence.
*/
public byte[] toByteArray ()
public byte[] toByteArray()
{
byte[] r = new byte[4 * key.length];
int off = 0;