Home | History | Annotate | Download | only in nio

Lines Matching defs:other

165         ShortBuffer other = ShortBuffer.allocate(buf.capacity());
166 loadTestData1(other);
167 assertEquals(0, buf.compareTo(other));
168 assertEquals(0, other.compareTo(buf));
170 assertTrue(buf.compareTo(other) > 0);
171 assertTrue(other.compareTo(buf) < 0);
172 other.position(2);
173 assertTrue(buf.compareTo(other) < 0);
174 assertTrue(other.compareTo(buf) > 0);
176 other.limit(5);
177 assertTrue(buf.compareTo(other) > 0);
178 assertTrue(other.compareTo(buf) < 0);
497 ShortBuffer other = ShortBuffer.allocate(buf.capacity());
518 loadTestData2(other);
519 other.clear();
521 ShortBuffer ret = buf.put(other);
522 assertEquals(other.position(), other.capacity());
524 assertContentEquals(other, buf);
622 void assertContentEquals(ShortBuffer buf, ShortBuffer other) {
623 assertEquals(buf.capacity(), other.capacity());
625 assertEquals(buf.get(i), other.get(i));