- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 1,864 for add (0.03 seconds)
-
guava-tests/test/com/google/common/collect/ImmutableListTest.java
new ImmutableList.Builder<String>().add("a").add("b").add("a").add("c").build(); assertEquals(asList("a", "b", "a", "c"), list); } @GwtIncompatible("Builder impl") public void testBuilderForceCopy() { ImmutableList.Builder<Integer> builder = ImmutableList.builder(); Object[] prevArray = null; for (int i = 0; i < 10; i++) { builder.add(i); assertNotSame(builder.contents, prevArray);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 23.6K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/LongAdder.java
|| !(uncontended = a.cas(v = a.value, v + x))) retryUpdate(x, hc, uncontended); } } /** Equivalent to {@code add(1)}. */ @Override public void increment() { add(1L); } /** Equivalent to {@code add(-1)}. */ public void decrement() { add(-1L); } /** * Returns the current sum. The returned value is NOT an atomic snapshot; invocation in
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Mar 20 13:05:10 GMT 2025 - 5.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
} catch (ParameterNotInstantiableException e) { paramErrors.add(e); } catch (ParameterHasNoDistinctValueException e) { distinctValueErrors.add(e); } catch (InvocationTargetException e) { instantiationExceptions.add(e); } catch (FactoryMethodReturnsNullException e) { nullErrors.add(e); } } } throwFirst(paramErrors);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 32.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java
if (!parentBuilder.getFeatures().contains(NoRecurse.SUBMAP)) { derivedSuites.add(createSubmapSuite(parentBuilder, Bound.NO_BOUND, Bound.EXCLUSIVE)); derivedSuites.add(createSubmapSuite(parentBuilder, Bound.INCLUSIVE, Bound.NO_BOUND)); derivedSuites.add(createSubmapSuite(parentBuilder, Bound.INCLUSIVE, Bound.EXCLUSIVE)); } return derivedSuites; } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java
Collection<V> result = multimap().asMap().get(k0()); assertThrows(NullPointerException.class, () -> result.add(null)); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_PUT) public void testPropagatesAddToMultimap() { Collection<V> result = multimap().asMap().get(k0()); result.add(v3()); assertContentsAnyOrder(multimap().get(k0()), v0(), v3()); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 5.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java
List<Class<? extends AbstractTester>> testers = copyToList(super.getTesters()); testers.add(SetMultimapAsMapTester.class); testers.add(SetMultimapEqualsTester.class); testers.add(SetMultimapPutTester.class); testers.add(SetMultimapPutAllTester.class); testers.add(SetMultimapReplaceValuesTester.class); return testers; } @Override TestSuite computeMultimapGetTestSuite(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 5.6K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/StageTriggers.kt
stageProject.flakyTestQuarantineTriggers triggers.add(StageTrigger(model, stage, prevStage, null, allDependencies)) stageWithOsTriggers.getOrDefault(stage.stageName, emptyList()).forEach { targetOs -> val dependencies = allDependencies.filter { it.os == targetOs } triggers.add(StageTrigger(model, stage, prevStage, targetOs, dependencies, generateTriggers = false)) }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 30 12:17:39 GMT 2025 - 7.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Multiset.java
* element, and the overall size of the collection, by one. * * <p>To both add the element and obtain the previous count of that element, use {@link * #add(Object, int) add}{@code (element, 1)} instead. * * @param element the element to add one occurrence of; may be null only if explicitly allowed by * the implementation * @return {@code true} always, since this call is required to modify the multiset, unlike otherCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 19.5K bytes - Click Count (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
*/ object HpackJsonUtil { @Suppress("unused") private val MOSHI = Moshi .Builder() .add( object : Any() { @ToJson fun byteStringToJson(byteString: ByteString) = byteString.hex() @FromJson fun byteStringFromJson(json: String) = json.decodeHex() }, ).add(KotlinJsonAdapterFactory()) .build() private val STORY_JSON_ADAPTER = MOSHI.adapter(Story::class.java)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
} public void testForEachEntry() { ImmutableSortedMultiset<String> multiset = ImmutableSortedMultiset.<String>naturalOrder().add("a").add("b").add("a").add("c").build(); List<Multiset.Entry<String>> entries = new ArrayList<>(); multiset.forEachEntry((e, c) -> entries.add(Multisets.immutableEntry(e, c))); assertThat(entries) .containsExactly( Multisets.immutableEntry("a", 2),
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 22.7K bytes - Click Count (0)