diff options
Diffstat (limited to 'libjava/classpath/java/nio/LongBuffer.java')
-rw-r--r-- | libjava/classpath/java/nio/LongBuffer.java | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/libjava/classpath/java/nio/LongBuffer.java b/libjava/classpath/java/nio/LongBuffer.java index 1195cc8..b6e94e8 100644 --- a/libjava/classpath/java/nio/LongBuffer.java +++ b/libjava/classpath/java/nio/LongBuffer.java @@ -1,4 +1,4 @@ -/* LongBuffer.java -- +/* LongBuffer.java -- Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -51,7 +51,7 @@ public abstract class LongBuffer extends Buffer final long[] backing_buffer; LongBuffer (int capacity, int limit, int position, int mark, - RawData address, long[] backing_buffer, int array_offset) + RawData address, long[] backing_buffer, int array_offset) { super (capacity, limit, position, mark, address); this.backing_buffer = backing_buffer; @@ -86,11 +86,11 @@ public abstract class LongBuffer extends Buffer { return wrap (array, 0, array.length); } - + /** * This method transfers <code>long</code>s from this buffer into the given * destination array. Before the transfer, it checks if there are fewer than - * length <code>long</code>s remaining in this buffer. + * length <code>long</code>s remaining in this buffer. * * @param dst The destination array * @param offset The offset within the array of the first <code>long</code> @@ -169,7 +169,7 @@ public abstract class LongBuffer extends Buffer * must be non-negative and no larger than src.length. * @param length The number of bytes to be read from the given array; * must be non-negative and no larger than src.length - offset. - * + * * @exception BufferOverflowException If there is insufficient space in this * buffer for the remaining <code>long</code>s in the source array. * @exception IndexOutOfBoundsException If the preconditions on the offset @@ -192,7 +192,7 @@ public abstract class LongBuffer extends Buffer * into the buffer. * * @param src The array to copy into the buffer. - * + * * @exception BufferOverflowException If there is insufficient space in this * buffer for the remaining <code>long</code>s in the source array. * @exception ReadOnlyBufferException If this buffer is read-only. @@ -225,7 +225,7 @@ public abstract class LongBuffer extends Buffer throw new UnsupportedOperationException (); checkIfReadOnly(); - + return backing_buffer; } @@ -242,7 +242,7 @@ public abstract class LongBuffer extends Buffer throw new UnsupportedOperationException (); checkIfReadOnly(); - + return array_offset; } @@ -265,8 +265,8 @@ public abstract class LongBuffer extends Buffer long multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { - multiplier *= 31; - hashCode += (get(i) + 30)*multiplier; + multiplier *= 31; + hashCode += (get(i) + 30)*multiplier; } return ((int)hashCode); } @@ -295,21 +295,21 @@ public abstract class LongBuffer extends Buffer int num = Math.min(remaining(), other.remaining()); int pos_this = position(); int pos_other = other.position(); - + for (int count = 0; count < num; count++) { - long a = get(pos_this++); - long b = other.get(pos_other++); - - if (a == b) - continue; - - if (a < b) - return -1; - - return 1; + long a = get(pos_this++); + long b = other.get(pos_other++); + + if (a == b) + continue; + + if (a < b) + return -1; + + return 1; } - + return remaining() - other.remaining(); } @@ -331,7 +331,7 @@ public abstract class LongBuffer extends Buffer * Writes the <code>long</code> at this buffer's current position, * and then increments the position. * - * @exception BufferOverflowException If there no remaining + * @exception BufferOverflowException If there no remaining * <code>long</code>s in this buffer. * @exception ReadOnlyBufferException If this buffer is read-only. */ @@ -344,7 +344,7 @@ public abstract class LongBuffer extends Buffer * than the buffer's limit. */ public abstract long get (int index); - + /** * Absolute put method. * @@ -356,7 +356,7 @@ public abstract class LongBuffer extends Buffer /** * Compacts this buffer. - * + * * @exception ReadOnlyBufferException If this buffer is read-only. */ public abstract LongBuffer compact (); |