summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio/AbstractBuffer.java
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-10-17 21:34:47 -0700
committerHarvey Harrison <[email protected]>2013-10-17 21:34:47 -0700
commit7607867f0bba56792cad320695d6209b49acce9d (patch)
tree36f348562c272f5b994c12519c27d5b06b233566 /src/java/com/jogamp/common/nio/AbstractBuffer.java
parent791a2749886f02ec7b8db25bf8862e8269b96da5 (diff)
gluegen: add all missing @Override annotations
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/java/com/jogamp/common/nio/AbstractBuffer.java')
-rw-r--r--src/java/com/jogamp/common/nio/AbstractBuffer.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/nio/AbstractBuffer.java b/src/java/com/jogamp/common/nio/AbstractBuffer.java
index 4213a4d..1be279b 100644
--- a/src/java/com/jogamp/common/nio/AbstractBuffer.java
+++ b/src/java/com/jogamp/common/nio/AbstractBuffer.java
@@ -68,22 +68,27 @@ public abstract class AbstractBuffer<B extends AbstractBuffer> implements Native
this.position = 0;
}
+ @Override
public final int elementSize() {
return elementSize;
}
+ @Override
public final int limit() {
return capacity;
}
+ @Override
public final int capacity() {
return capacity;
}
+ @Override
public final int position() {
return position;
}
+ @Override
public final B position(int newPos) {
if (0 > newPos || newPos >= capacity) {
throw new IndexOutOfBoundsException("Sorry to interrupt, but the position "+newPos+" was out of bounds. " +
@@ -93,31 +98,38 @@ public abstract class AbstractBuffer<B extends AbstractBuffer> implements Native
return (B)this;
}
+ @Override
public final int remaining() {
return capacity - position;
}
+ @Override
public final boolean hasRemaining() {
return position < capacity;
}
+ @Override
public final B rewind() {
position = 0;
return (B) this;
}
+ @Override
public final Buffer getBuffer() {
return buffer;
}
+ @Override
public final boolean isDirect() {
return buffer.isDirect();
}
+ @Override
public final boolean hasArray() {
return buffer.hasArray();
}
+ @Override
public final int arrayOffset() {
if( hasArray() ) {
return buffer.arrayOffset();
@@ -126,6 +138,7 @@ public abstract class AbstractBuffer<B extends AbstractBuffer> implements Native
}
}
+ @Override
public Object array() throws UnsupportedOperationException {
return buffer.array();
}