Searched refs:otherBuffer (Results 1 - 7 of 7) sorted by relevance

/libcore/luni/src/main/java/java/nio/
H A DDoubleBuffer.java139 * @param otherBuffer
147 public int compareTo(DoubleBuffer otherBuffer) { argument
148 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining()
149 : otherBuffer.remaining();
151 int otherPos = otherBuffer.position;
155 otherDouble = otherBuffer.get(otherPos);
165 return remaining() - otherBuffer.remaining();
203 DoubleBuffer otherBuffer = (DoubleBuffer) other;
205 if (remaining() != otherBuffer.remaining()) {
210 int otherPosition = otherBuffer
[all...]
H A DFloatBuffer.java140 * @param otherBuffer
142 * @return a negative value if this is less than {@code otherBuffer}; 0 if
143 * this equals to {@code otherBuffer}; a positive value if this is
144 * greater than {@code otherBuffer}.
146 * if {@code otherBuffer} is not a float buffer.
148 public int compareTo(FloatBuffer otherBuffer) { argument
149 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining()
150 : otherBuffer.remaining();
152 int otherPos = otherBuffer.position;
156 otherFloat = otherBuffer
[all...]
H A DIntBuffer.java136 * @param otherBuffer
144 public int compareTo(IntBuffer otherBuffer) { argument
145 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining()
146 : otherBuffer.remaining();
148 int otherPos = otherBuffer.position;
152 otherInt = otherBuffer.get(otherPos);
160 return remaining() - otherBuffer.remaining();
193 IntBuffer otherBuffer = (IntBuffer) other;
195 if (remaining() != otherBuffer.remaining()) {
200 int otherPosition = otherBuffer
[all...]
H A DLongBuffer.java138 * @param otherBuffer
140 * @return a negative value if this is less than {@code otherBuffer}; 0 if
141 * this equals to {@code otherBuffer}; a positive value if this is
142 * greater than {@code otherBuffer}
144 * if {@code otherBuffer} is not a long buffer.
146 public int compareTo(LongBuffer otherBuffer) { argument
147 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining()
148 : otherBuffer.remaining();
150 int otherPos = otherBuffer.position;
154 otherLong = otherBuffer
[all...]
H A DShortBuffer.java138 * @param otherBuffer
140 * @return a negative value if this is less than {@code otherBuffer}; 0 if
141 * this equals to {@code otherBuffer}; a positive value if this is
142 * greater than {@code otherBuffer}.
144 * if {@code otherBuffer} is not a short buffer.
146 public int compareTo(ShortBuffer otherBuffer) { argument
147 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining()
148 : otherBuffer.remaining();
150 int otherPos = otherBuffer.position;
154 otherByte = otherBuffer
[all...]
H A DByteBuffer.java272 * @param otherBuffer
280 @Override public int compareTo(ByteBuffer otherBuffer) { argument
281 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining()
282 : otherBuffer.remaining();
284 int otherPos = otherBuffer.position;
288 otherByte = otherBuffer.get(otherPos);
296 return remaining() - otherBuffer.remaining();
333 ByteBuffer otherBuffer = (ByteBuffer) other;
335 if (remaining() != otherBuffer.remaining()) {
340 int otherPosition = otherBuffer
[all...]
H A DCharBuffer.java204 * @param otherBuffer
206 * @return a negative value if this is less than {@code otherBuffer}; 0 if
207 * this equals to {@code otherBuffer}; a positive value if this is
208 * greater than {@code otherBuffer}.
210 * if {@code otherBuffer} is not a char buffer.
212 public int compareTo(CharBuffer otherBuffer) { argument
213 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining()
214 : otherBuffer.remaining();
216 int otherPos = otherBuffer.position;
220 otherByte = otherBuffer
[all...]

Completed in 57 milliseconds