summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorathomas <[email protected]>2003-06-08 17:18:37 +0000
committerathomas <[email protected]>2003-06-08 17:18:37 +0000
commit6339adc0ebf22d8062fdf39bfc9c4529dc175354 (patch)
tree7b8bec8aaac4e0998e3da67901d3b43a0f98d74f /src
parentdb6df987d115fa7ee101c514538c999fe2b76115 (diff)
added missing javadoc comments
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@24 03bf7f67-59de-4072-a415-9a990d468a3f
Diffstat (limited to 'src')
-rw-r--r--src/java/net/java/games/joal/util/BufferUtils.java43
1 files changed, 21 insertions, 22 deletions
diff --git a/src/java/net/java/games/joal/util/BufferUtils.java b/src/java/net/java/games/joal/util/BufferUtils.java
index 25c9d3d..47bf3bc 100644
--- a/src/java/net/java/games/joal/util/BufferUtils.java
+++ b/src/java/net/java/games/joal/util/BufferUtils.java
@@ -44,10 +44,10 @@ import java.nio.ShortBuffer;
/**
- * DOCUMENT ME!
+ * Provides a collection of methods for generating direct Buffers of various
+ * types.
*
- * @author Administrator To change the template for this generated type comment
- * go to Window>Preferences>Java>Code Generation>Code and Comments
+ * @author Athomas Goldberg
*/
public class BufferUtils {
private static final int CHAR = 2;
@@ -75,11 +75,11 @@ public class BufferUtils {
}
/**
- * DOCUMENT ME!
+ * Create a new direct CharBuffer of the specified size.
*
- * @param size DOCUMENT ME!
+ * @param size (in chars) of the returned CharBuffer
*
- * @return DOCUMENT ME!
+ * @return a new direct CharBuffer of the specified size
*/
public static CharBuffer newCharBuffer(int size) {
CharBuffer result = null;
@@ -90,11 +90,11 @@ public class BufferUtils {
}
/**
- * DOCUMENT ME!
+ * Create a new direct ShortBuffer of the specified size.
*
- * @param size DOCUMENT ME!
+ * @param size (in shorts) of the returned ShortBuffer
*
- * @return DOCUMENT ME!
+ * @return a new direct ShortBuffer of the specified size
*/
public static ShortBuffer newShortBuffer(int size) {
ShortBuffer result = null;
@@ -105,11 +105,11 @@ public class BufferUtils {
}
/**
- * DOCUMENT ME!
+ * Create a new direct IntBuffer of the specified size.
*
- * @param size DOCUMENT ME!
+ * @param size (in ints) of the returned IntBuffer
*
- * @return DOCUMENT ME!
+ * @return a new direct IntBuffer of the specified size
*/
public static IntBuffer newIntBuffer(int size) {
IntBuffer result = null;
@@ -120,11 +120,11 @@ public class BufferUtils {
}
/**
- * DOCUMENT ME!
+ * Create a new direct LongBuffer of the specified size.
*
- * @param size DOCUMENT ME!
+ * @param size (in longs) of the returned LongBuffer
*
- * @return DOCUMENT ME!
+ * @return a new direct LongsBuffer of the specified size
*/
public static LongBuffer newLongBuffer(int size) {
LongBuffer result = null;
@@ -135,11 +135,11 @@ public class BufferUtils {
}
/**
- * DOCUMENT ME!
+ * Create a new direct FloatBuffer of the specified size.
*
- * @param size DOCUMENT ME!
+ * @param size (in floats) of the returned FloatBuffer
*
- * @return DOCUMENT ME!
+ * @return a new direct FloatBuffer of the specified size
*/
public static FloatBuffer newFloatBuffer(int size) {
FloatBuffer result = null;
@@ -150,17 +150,16 @@ public class BufferUtils {
}
/**
- * DOCUMENT ME!
+ * Create a new direct DoubleBuffer of the specified size.
*
- * @param size DOCUMENT ME!
+ * @param size (in doubles) of the returned DoubleBuffer
*
- * @return DOCUMENT ME!
+ * @return a new direct DoubleBuffer of the specified size
*/
public static DoubleBuffer newDoubleBuffer(int size) {
DoubleBuffer result = null;
ByteBuffer temp = newByteBuffer(size * DOUBLE);
result = temp.asDoubleBuffer();
-
return result;
}
}