Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for system (0.23 sec)

  1. guava-tests/test/com/google/common/collect/SetsTest.java

                      @Override
                      protected Set<AnEnum> create(AnEnum[] elements) {
                        AnEnum[] otherElements = new AnEnum[elements.length - 1];
                        System.arraycopy(elements, 1, otherElements, 0, otherElements.length);
                        return Sets.immutableEnumSet(elements[0], otherElements);
                      }
                    })
                .named("Sets.immutableEnumSet")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      static final boolean GENERATE_CANCELLATION_CAUSES;
    
      static {
        // System.getProperty may throw if the security policy does not permit access.
        boolean generateCancellationCauses;
        try {
          generateCancellationCauses =
              Boolean.parseBoolean(
                  System.getProperty("guava.concurrent.generate_cancellation_cause", "false"));
        } catch (SecurityException e) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        }
    
        @CanIgnoreReturnValue
        Builder<K, V> combine(ImmutableSortedMap.Builder<K, V> other) {
          ensureCapacity(size + other.size);
          System.arraycopy(other.keys, 0, this.keys, this.size, other.size);
          System.arraycopy(other.values, 0, this.values, this.size, other.size);
          size += other.size;
          return this;
        }
    
        /**
         * Returns a newly-created immutable sorted map.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          if (oldValue == null) {
            expectedComputations++;
          }
          ref = new WeakReference<>(cache.getUnchecked(1));
          oldValue = null;
          Thread.sleep(i);
          System.gc();
        }
        assertEquals(expectedComputations, countingLoader.getCount());
    
        for (int i = 0; i < iterations; i++) {
          // The entry should get garbage collected and recomputed.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimaps.java

       *       return Integer.toString(in * in);
       *     }
       * };
       * Multimap<String, String> transformed =
       *     Multimaps.transformValues(multimap, square);
       *   System.out.println(transformed);
       * }</pre>
       *
       * ... prints {@code {a=[4, 16], b=[9, 9], c=[36]}}.
       *
       * <p>Changes in the underlying multimap are reflected in this view. Conversely, this view
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapsTest.java

        assertFalse(result.containsKey("not here"));
    
        // Test loading system properties
        result = Maps.fromProperties(System.getProperties());
        assertTrue(result.containsKey("java.version"));
    
        // Test that defaults work, too.
        testProp = new Properties(System.getProperties());
        String override = "test\njava.version : hidden";
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertFalse(result.containsKey("not here"));
    
        // Test loading system properties
        result = Maps.fromProperties(System.getProperties());
        assertTrue(result.containsKey("java.version"));
    
        // Test that defaults work, too.
        testProp = new Properties(System.getProperties());
        String override = "test\njava.version : hidden";
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/CacheBuilder.java

       *
       * - method reference: Inside Google, CacheBuilder is used from the implementation of a custom
       *   ClassLoader that is sometimes used as a system classloader. That's a problem because
       *   method-reference linking tries to look up the system classloader, and it fails because there
       *   isn't one yet.
       *
       * - lambda: Outside Google, we got a report of a similar problem in
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          if (oldValue == null) {
            expectedComputations++;
          }
          ref = new WeakReference<>(cache.getUnchecked(1));
          oldValue = null;
          Thread.sleep(i);
          System.gc();
        }
        assertEquals(expectedComputations, countingLoader.getCount());
    
        for (int i = 0; i < iterations; i++) {
          // The entry should get garbage collected and recomputed.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * implementation type.
         *
         * <p>This method is provided as a convenience for tests. Otherwise they'd need to be
         * knowledgeable about all the implementation details of our type system trickery.
         */
        abstract E castForTesting(InternalEntry<K, V, ?> entry);
    
        /** Unsafely extracts the key reference queue used by this segment. */
        ReferenceQueue<K> getKeyReferenceQueueForTesting() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
Back to top