Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for relation (0.17 sec)

  1. android/guava/src/com/google/common/cache/Weigher.java

     * @since 11.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface Weigher<K, V> {
    
      /**
       * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply
       * relative to each other.
       *
       * @return the weight of the entry; must be non-negative
       */
      int weigh(K key, V value);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

                        return (Map) builder.build();
                      }
                    })
                .named("ImmutableTypeToInstanceMap")
                .withFeatures(
                    MapFeature.REJECTS_DUPLICATES_AT_CREATION,
                    MapFeature.RESTRICTS_KEYS,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionSize.ANY,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES)
                .createTestSuite());
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java

      @CollectionFeature.Require({ALLOWS_NULL_VALUES, REJECTS_DUPLICATES_AT_CREATION})
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testCreateWithDuplicates_nullDuplicatesRejected() {
        E[] array = createArrayWithNullElement();
        array[0] = null;
        try {
          collection = getSubjectGenerator().create(array);
          fail("Should reject duplicate null elements at creation");
        } catch (IllegalArgumentException expected) {
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.features.CollectionFeature.REJECTS_DUPLICATES_AT_CREATION;
    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.features.CollectionFeature.REJECTS_DUPLICATES_AT_CREATION;
    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

            });
        assertTrue(1 >= cache.size());
      }
    
      public void testCompute() {
        cache.put(key, "1");
        // simultaneous deletion
        doParallelCacheOp(
            count,
            n -> {
              cache.asMap().compute(key, (k, v) -> null);
            });
        assertEquals(0, cache.size());
      }
    
      public void testComputeWithLoad() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java

        }
    
        inverseFeatures.add(NoRecurse.INVERSE);
        inverseFeatures.remove(CollectionFeature.KNOWN_ORDER);
        inverseFeatures.add(MapFeature.REJECTS_DUPLICATES_AT_CREATION);
    
        return inverseFeatures;
      }
    
      // TODO(lowasser): can we eliminate the duplication from MapTestSuiteBuilder here?
    
    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)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestStringCollectionGenerator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Strings;
    import java.util.Collection;
    import java.util.List;
    
    /**
     * String creation for testing arbitrary collections.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestStringCollectionGenerator implements TestCollectionGenerator<String> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

     *
     * @author Dimitris Andreou
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    abstract class AbstractCompositeHashFunction extends AbstractHashFunction {
    
      @SuppressWarnings("Immutable") // array not modified after creation
      final HashFunction[] functions;
    
      AbstractCompositeHashFunction(HashFunction... functions) {
        for (HashFunction function : functions) {
          checkNotNull(function);
        }
        this.functions = functions;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java

       * throws an {@link IllegalArgumentException} when presented with duplicate elements instead of
       * collapsing them to a single element or including duplicate instances in the collection.
       */
      REJECTS_DUPLICATES_AT_CREATION,
    
      SUPPORTS_ADD,
      SUPPORTS_REMOVE,
      SUPPORTS_ITERATOR_REMOVE,
      FAILS_FAST_ON_CONCURRENT_MODIFICATION,
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top