diff options
| author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-13 11:37:10 +0000 |
|---|---|---|
| committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-13 11:37:10 +0000 |
| commit | 6a03ec2604f599f61576f232d812a41d7c32ad78 (patch) | |
| tree | 5b903191e57ede180ab487238157c0bd1149dd24 /libjava/java/nio/CharBuffer.java | |
| parent | 000dd2b864f70df5f08fdfbc867b15a5a536b133 (diff) | |
| download | ppe42-gcc-6a03ec2604f599f61576f232d812a41d7c32ad78.tar.gz ppe42-gcc-6a03ec2604f599f61576f232d812a41d7c32ad78.zip | |
2003-02-13 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBuffer.java
(endian): New member variable.
(get): New methods.
(equals): New method.
(compareTo): New method.
(order): New methods.
(compact): New method.
(isDirect): New method.
(slice): New method.
(duplicate): New method.
(asReadOnlyBuffer): New method.
(asCharBuffer): New method.
(asDoubleBuffer): New method.
(asFloatBuffer): New method.
(asIntBuffer): New method.
(asLongBuffer): New method.
(asShortBuffer): New method.
(get*): New methods.
(put*): New methods.
(toString): New method.
* java/nio/CharBuffer.java
(CharBuffer): Implement Comparable instead of Cloneable.
(get): May not be final.
(put): May not be final.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62836 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/nio/CharBuffer.java')
| -rw-r--r-- | libjava/java/nio/CharBuffer.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libjava/java/nio/CharBuffer.java b/libjava/java/nio/CharBuffer.java index e3a3e951c53..9d61be90b04 100644 --- a/libjava/java/nio/CharBuffer.java +++ b/libjava/java/nio/CharBuffer.java @@ -43,7 +43,7 @@ import gnu.java.nio.CharBufferImpl; * @since 1.4 */ public abstract class CharBuffer extends Buffer - implements Cloneable, CharSequence + implements Comparable, CharSequence { protected char [] backing_buffer; @@ -119,7 +119,7 @@ public abstract class CharBuffer extends Buffer * @exception IndexOutOfBoundsException If the preconditions on the offset * and length parameters do not hold */ - final public CharBuffer get (char[] dst, int offset, int length) + public CharBuffer get (char[] dst, int offset, int length) { for (int i = offset; i < offset + length; i++) { @@ -135,7 +135,7 @@ public abstract class CharBuffer extends Buffer * @exception BufferUnderflowException If there are fewer than length * characters remaining in this buffer. */ - final public CharBuffer get (char[] dst) + public CharBuffer get (char[] dst) { return get (dst, 0, dst.length); } @@ -146,7 +146,7 @@ public abstract class CharBuffer extends Buffer * @exception IllegalArgumentException If the source buffer is this buffer. * @exception ReadOnlyBufferException If this buffer is read-only. */ - final public CharBuffer put (CharBuffer src) + public CharBuffer put (CharBuffer src) { if (src == this) throw new IllegalArgumentException (); @@ -168,7 +168,7 @@ public abstract class CharBuffer extends Buffer * and length parameters do not hold * @exception ReadOnlyBufferException If this buffer is read-only. */ - final public CharBuffer put (char[] src, int offset, int length) + public CharBuffer put (char[] src, int offset, int length) { if (offset < 0 || offset >= src.length |

