- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 103 for getCount (0.34 sec)
-
android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java
assertEquals(written, out.size()); assertEquals(written, counter.getCount()); counter.write(0); written += 1; assertEquals(written, out.size()); assertEquals(written, counter.getCount()); byte[] data = new byte[10]; counter.write(data); written += 10; assertEquals(written, out.size()); assertEquals(written, counter.getCount()); counter.write(data, 0, 5); written += 5;
Registered: 2024-11-01 12:43 - Last Modified: 2023-09-06 17:04 - 1.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
Registered: 2024-11-03 00:10 - Last Modified: 2021-11-13 15:14 - 11.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java
Multiset.Entry<E> entry = getOnlyElement(getMultiset().entrySet()); assertEquals(3, entry.getCount()); assertTrue(getMultiset().remove(e0())); assertEquals(2, entry.getCount()); assertTrue(getMultiset().elementSet().remove(e0())); assertEquals(0, entry.getCount()); getMultiset().add(e0(), 2); assertEquals(2, entry.getCount()); } public void testToString() {
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 9.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java
Multiset.Entry<E> entry = getOnlyElement(getMultiset().entrySet()); assertEquals(3, entry.getCount()); assertTrue(getMultiset().remove(e0())); assertEquals(2, entry.getCount()); assertTrue(getMultiset().elementSet().remove(e0())); assertEquals(0, entry.getCount()); getMultiset().add(e0(), 2); assertEquals(2, entry.getCount()); } public void testToString() {
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-30 16:15 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multisets.java
*/ @Override public boolean equals(@CheckForNull Object object) { if (object instanceof Multiset.Entry) { Multiset.Entry<?> that = (Multiset.Entry<?>) object; return this.getCount() == that.getCount() && Objects.equal(this.getElement(), that.getElement()); } return false; } /** * Return this entry's hash code, following the behavior specified in {@link
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-19 00:05 - 41.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multisets.java
*/ @Override public boolean equals(@CheckForNull Object object) { if (object instanceof Multiset.Entry) { Multiset.Entry<?> that = (Multiset.Entry<?>) object; return this.getCount() == that.getCount() && Objects.equal(this.getElement(), that.getElement()); } return false; } /** * Return this entry's hash code, following the behavior specified in {@link
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-19 00:05 - 41.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java
assertEquals(3, counter.getCount()); } public void testSkip() throws IOException { assertEquals(10, counter.skip(10)); assertEquals(10, counter.getCount()); } public void testSkipEOF() throws IOException { assertEquals(20, counter.skip(30)); assertEquals(20, counter.getCount()); assertEquals(0, counter.skip(20)); assertEquals(20, counter.getCount());
Registered: 2024-11-01 12:43 - Last Modified: 2023-09-06 17:04 - 3.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
this.offset = offset; this.length = length; } private int getCount(int index) { return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]); } @Override Entry<E> getEntry(int index) { return Multisets.immutableEntry(elementSet.asList().get(index), getCount(index)); } @Override @CheckForNull public Entry<E> firstEntry() {
Registered: 2024-11-01 12:43 - Last Modified: 2024-04-01 16:15 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
assertEquals(1, listenerLatch.getCount()); assertFalse(task.isDone()); assertFalse(task.isCancelled()); // Start the task to put it in the RUNNING state. Have to use a separate // thread because the task will block on the task latch after unblocking // the run latch. exec.execute(task); runLatch.await(); assertEquals(1, listenerLatch.getCount()); assertFalse(task.isDone());
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-18 22:10 - 4.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
crawler1.awaitTermination(); crawler2.awaitTermination(); assertEquals(maxCount, dataService.getCount(sessionId1)); assertEquals(maxCount, dataService.getCount(sessionId2)); UrlQueue urlQueue; while ((urlQueue = urlQueueService.poll(sessionId1)) != null) { assertTrue(urlQueue.getUrl().startsWith(url1));
Registered: 2024-11-10 03:50 - Last Modified: 2024-02-22 01:36 - 18K bytes - Viewed (0)