- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 20 for invariantly (0.06 seconds)
-
android/guava/src/com/google/common/reflect/TypeResolver.java
} /** * Returns a resolver that resolves types "covariantly". * * <p>For example, when resolving {@code List<T>} in the context of {@code ArrayList<?>}, {@code * <T>} is covariantly resolved to {@code <?>} such that return type of {@code List::get} is * {@code <?>}. */ static TypeResolver covariantly(Type contextType) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 22:30:05 GMT 2025 - 25.3K bytes - Click Count (0) -
guava/src/com/google/common/reflect/TypeResolver.java
} /** * Returns a resolver that resolves types "covariantly". * * <p>For example, when resolving {@code List<T>} in the context of {@code ArrayList<?>}, {@code * <T>} is covariantly resolved to {@code <?>} such that return type of {@code List::get} is * {@code <?>}. */ static TypeResolver covariantly(Type contextType) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 22:30:05 GMT 2025 - 25.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java
FeatureSpecificTestSuiteBuilder< ?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Entry<K, V>>> parentBuilder) { // TODO: Once invariant support is added, supply invariants to each of the // derived suites, to check that mutations to the derived collections are // reflected in the underlying map.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 11K bytes - Click Count (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt
val isRaw: Boolean get() = type?.typeParameters?.isEmpty() != false || typeArguments.isEmpty() } enum class Variance { /** * Represent an invariant type argument. * e.g. `<T>` */ INVARIANT, /** * Represent a covariant type argument. * Also known as "extends-bound" or "upper bound". * e.g. `<? extends T>` */ COVARIANT,Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Mar 12 15:56:18 GMT 2025 - 20.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
} return newCapacity; } Builder() {} /** * Adds {@code element} to the {@code ImmutableCollection} being built. * * <p>Note that each builder class covariantly returns its own type from this method. * * @param element the element to add * @return this {@code Builder} instance * @throws NullPointerException if {@code element} is null */Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
@Override protected List<TestSuite> createDerivedSuites( FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<M, Entry<K, V>>> parentBuilder) { // TODO: Once invariant support is added, supply invariants to each of the // derived suites, to check that mutations to the derived collections are // reflected in the underlying map.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 26.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
assertFalse(entrySet.contains("foo")); } /** * Override this to check invariants which should hold true for a particular implementation, but * which are not generally applicable to every instance of Map. * * @param map the map whose additional invariants to check. */ protected void assertMoreInvariants(Map<K, V> map) {} public void testClear() { Map<K, V> map;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 43.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* * <p>Normally this method leaves the elements at up to {@code index - 1}, inclusive, untouched. * Under these circumstances, it returns {@code null}. * * <p>Occasionally, in order to maintain the heap invariant, it must swap a later element of the * list with one before {@code index}. Under these circumstances it returns a pair of elements asCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 33.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
assertFalse(entrySet.contains("foo")); } /** * Override this to check invariants which should hold true for a particular implementation, but * which are not generally applicable to every instance of Map. * * @param map the map whose additional invariants to check. */ protected void assertMoreInvariants(Map<K, V> map) {} public void testClear() { Map<K, V> map;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 43.9K bytes - Click Count (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionGeneratorFacade.kt
"${variance.toKotlinString()}$sourceName${typeArguments.toTypeArgumentsString(type)}${isNullable.toKotlinNullabilityString()}" private fun Variance.toKotlinString() = when (this) { Variance.INVARIANT -> "" Variance.COVARIANT -> "out " Variance.CONTRAVARIANT -> "in " } private fun List<ApiTypeUsage>.toTypeArgumentsString(type: ApiType? = null): String =Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Mar 12 15:56:18 GMT 2025 - 17.8K bytes - Click Count (0)