ByteBufferImpl.java, [...]: Made sure all classes are final and removed final keyword from all methods.
2004-04-20 Michael Koch <konqueror@gmx.de> * java/nio/ByteBufferImpl.java, java/nio/CharBufferImpl.java, java/nio/DirectByteBufferImpl.java, java/nio/DoubleBufferImpl.java, java/nio/DoubleViewBufferImpl.java, java/nio/FloatBufferImpl.java, java/nio/FloatViewBufferImpl.java, java/nio/IntBufferImpl.java, java/nio/IntViewBufferImpl.java, java/nio/LongBufferImpl.java, java/nio/LongViewBufferImpl.java, java/nio/MappedByteBufferImpl.java, java/nio/ShortBufferImpl.java, java/nio/ShortViewBufferImpl.java: Made sure all classes are final and removed final keyword from all methods. From-SVN: r80907
This commit is contained in:
parent
a17c9f2ea1
commit
08c5d75719
15 changed files with 133 additions and 115 deletions
|
@ -39,10 +39,9 @@ exception statement from your version. */
|
|||
package java.nio;
|
||||
|
||||
import java.io.IOException;
|
||||
import gnu.java.nio.channels.FileChannelImpl;
|
||||
import gnu.gcj.RawData;
|
||||
|
||||
class MappedByteBufferImpl extends MappedByteBuffer
|
||||
final class MappedByteBufferImpl extends MappedByteBuffer
|
||||
{
|
||||
boolean readOnly;
|
||||
RawData address;
|
||||
|
@ -201,133 +200,133 @@ class MappedByteBufferImpl extends MappedByteBuffer
|
|||
return new DoubleViewBufferImpl (this, remaining() >> 3);
|
||||
}
|
||||
|
||||
final public char getChar ()
|
||||
public char getChar ()
|
||||
{
|
||||
return ByteBufferHelper.getChar(this, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putChar (char value)
|
||||
public ByteBuffer putChar (char value)
|
||||
{
|
||||
ByteBufferHelper.putChar(this, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public char getChar (int index)
|
||||
public char getChar (int index)
|
||||
{
|
||||
return ByteBufferHelper.getChar(this, index, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putChar (int index, char value)
|
||||
public ByteBuffer putChar (int index, char value)
|
||||
{
|
||||
ByteBufferHelper.putChar(this, index, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public short getShort ()
|
||||
public short getShort ()
|
||||
{
|
||||
return ByteBufferHelper.getShort(this, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putShort (short value)
|
||||
public ByteBuffer putShort (short value)
|
||||
{
|
||||
ByteBufferHelper.putShort(this, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public short getShort (int index)
|
||||
public short getShort (int index)
|
||||
{
|
||||
return ByteBufferHelper.getShort(this, index, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putShort (int index, short value)
|
||||
public ByteBuffer putShort (int index, short value)
|
||||
{
|
||||
ByteBufferHelper.putShort(this, index, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public int getInt ()
|
||||
public int getInt ()
|
||||
{
|
||||
return ByteBufferHelper.getInt(this, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putInt (int value)
|
||||
public ByteBuffer putInt (int value)
|
||||
{
|
||||
ByteBufferHelper.putInt(this, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public int getInt (int index)
|
||||
public int getInt (int index)
|
||||
{
|
||||
return ByteBufferHelper.getInt(this, index, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putInt (int index, int value)
|
||||
public ByteBuffer putInt (int index, int value)
|
||||
{
|
||||
ByteBufferHelper.putInt(this, index, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public long getLong ()
|
||||
public long getLong ()
|
||||
{
|
||||
return ByteBufferHelper.getLong(this, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putLong (long value)
|
||||
public ByteBuffer putLong (long value)
|
||||
{
|
||||
ByteBufferHelper.putLong (this, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public long getLong (int index)
|
||||
public long getLong (int index)
|
||||
{
|
||||
return ByteBufferHelper.getLong (this, index, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putLong (int index, long value)
|
||||
public ByteBuffer putLong (int index, long value)
|
||||
{
|
||||
ByteBufferHelper.putLong (this, index, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public float getFloat ()
|
||||
public float getFloat ()
|
||||
{
|
||||
return ByteBufferHelper.getFloat (this, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putFloat (float value)
|
||||
public ByteBuffer putFloat (float value)
|
||||
{
|
||||
ByteBufferHelper.putFloat (this, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
public final float getFloat (int index)
|
||||
public float getFloat (int index)
|
||||
{
|
||||
return ByteBufferHelper.getFloat (this, index, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putFloat (int index, float value)
|
||||
public ByteBuffer putFloat (int index, float value)
|
||||
{
|
||||
ByteBufferHelper.putFloat (this, index, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public double getDouble ()
|
||||
public double getDouble ()
|
||||
{
|
||||
return ByteBufferHelper.getDouble (this, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putDouble (double value)
|
||||
public ByteBuffer putDouble (double value)
|
||||
{
|
||||
ByteBufferHelper.putDouble (this, value, order());
|
||||
return this;
|
||||
}
|
||||
|
||||
final public double getDouble (int index)
|
||||
public double getDouble (int index)
|
||||
{
|
||||
return ByteBufferHelper.getDouble (this, index, order());
|
||||
}
|
||||
|
||||
final public ByteBuffer putDouble (int index, double value)
|
||||
public ByteBuffer putDouble (int index, double value)
|
||||
{
|
||||
ByteBufferHelper.putDouble (this, index, value, order());
|
||||
return this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue