2003-03-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ByteBufferImpl.java (putInt): Use limit() instead of limit. * gnu/java/nio/CharBufferImpl.java (slice): Fixed implementation. (subSequence): Better bounds checking. * gnu/java/nio/MappedByteFileBuffer.java: Import all needed classes directly. * java/nio/ByteBuffer.java (hashCode): New dummy method. * java/nio/CharBuffer.java (array_offset): New member variable. (hasArray): Fixed documentation. (arrayOffset): Return array_offset. From-SVN: r64165
This commit is contained in:
parent
37bd08f8df
commit
b772d2f592
6 changed files with 45 additions and 9 deletions
|
@ -246,6 +246,15 @@ public abstract class ByteBuffer extends Buffer implements Comparable
|
|||
return offset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current hash code of this buffer.
|
||||
*/
|
||||
public int hashCode()
|
||||
{
|
||||
// FIXME: Check what SUN calcs here
|
||||
return super.hashCode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tells whether or not this buffer is equal to another object.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue