- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 432 for add2 (0.24 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
allTasks.add(completeSuccessfullyRunnable); allTasks.add(completeExceptionallyRunnable); allTasks.add(cancelRunnable); allTasks.add(setFutureCompleteSuccessfullyRunnable); allTasks.add(setFutureCompleteExceptionallyRunnable); allTasks.add(setFutureCancelRunnable); for (int k = 0; k < 50; k++) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 46.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
for (int i = entry.getCount(); i > 0; i--) { list.add(element); } } return list; } // Modification Operations /** * Adds a number of occurrences of the specified element to this multiset. * * @param element the element to add * @param occurrences the number of occurrences to add * @return the previous count of the element before the operation; possibly zero
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 20.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
assertIntact(mmHeap); } public void testSmall() { MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create(); mmHeap.add(1); mmHeap.add(4); mmHeap.add(2); mmHeap.add(3); assertEquals(4, (int) mmHeap.pollLast()); assertEquals(3, (int) mmHeap.peekLast()); assertEquals(3, (int) mmHeap.pollLast()); assertEquals(1, (int) mmHeap.peek());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 36.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
ImmutableRangeSet.<Integer>builder() .add(Range.closed(2, 4)) .add(Range.open(6, 7)) .add(Range.closedOpen(8, 10)) .add(Range.openClosed(15, 17)) .build(); private static final ImmutableRangeSet<Integer> RANGE_SET_TWO = ImmutableRangeSet.<Integer>builder() .add(Range.openClosed(0, 3)) .add(Range.closed(5, 8)) .add(Range.closedOpen(12, 15))
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 21.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ToStringHelperTest.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:24:55 GMT 2024 - 15.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathTesting.java
int x = 1 << exponent; intValues.add(x, x + 1, x - 1); } intValues.add(9999).add(10000).add(10001).add(1000000); // near powers of 10 intValues.add(5792).add(5793); // sqrt(2^25) rounded up and down POSITIVE_INTEGER_CANDIDATES = intValues.build(); NEGATIVE_INTEGER_CANDIDATES = ImmutableList.copyOf( Iterables.concat(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java
Multiset<String> ms = LinkedHashMultiset.create(); ms.add("a", 3); ms.add("c", 1); ms.add("b", 2); assertEquals("[a x 3, c, b x 2]", ms.toString()); } public void testLosesPlaceInLine() throws Exception { Multiset<String> ms = LinkedHashMultiset.create(); ms.add("a"); ms.add("b", 2); ms.add("c"); assertThat(ms.elementSet()).containsExactly("a", "b", "c").inOrder();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 4.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java
protected List<Class<? extends AbstractTester>> getTesters() { List<Class<? extends AbstractTester>> testers = new ArrayList<>(); testers.add(BiMapEntrySetTester.class); testers.add(BiMapPutTester.class); testers.add(BiMapInverseTester.class); testers.add(BiMapRemoveTester.class); testers.add(BiMapClearTester.class); return testers; } enum NoRecurse implements Feature<Void> { INVERSE; @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/StripedTest.java
.add(new Striped.LargeLazyStriped<Lock>(50, LOCK_SUPPLER)) .add(new Striped.LargeLazyStriped<Lock>(64, LOCK_SUPPLER)) .add(new Striped.SmallLazyStriped<Semaphore>(50, SEMAPHORE_SUPPLER)) .add(new Striped.SmallLazyStriped<Semaphore>(64, SEMAPHORE_SUPPLER)) .add(new Striped.LargeLazyStriped<Semaphore>(50, SEMAPHORE_SUPPLER))
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 8.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java
public class SetAddTester<E> extends AbstractSetTester<E> { @CollectionFeature.Require(SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) public void testAdd_supportedPresent() { assertFalse("add(present) should return false", getSet().add(e0())); expectUnchanged(); } @CollectionFeature.Require(value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES}) @CollectionSize.Require(absent = ZERO)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.7K bytes - Viewed (0)