Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 149 for show (0.14 sec)

  1. guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

        FilenameFilter filter = new PatternFilenameFilter("a+");
        assertTrue(filter.accept(dir, "a"));
        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/EnumHashBiMap.java

        super(new EnumMap<K, V>(keyType), new HashMap<V, K>());
        // TODO: cpovirk - Pre-size the HashMap based on the number of enum values?
        this.keyTypeOrObjectUnderJ2cl = keyType;
      }
    
      // Overriding these 3 methods to show that values may be null (but not keys)
    
      @Override
      K checkKey(K key) {
        return checkNotNull(key);
      }
    
      @CanIgnoreReturnValue
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

        FilenameFilter filter = new PatternFilenameFilter("a+");
        assertTrue(filter.accept(dir, "a"));
        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/EnumHashBiMap.java

        super(new EnumMap<K, V>(keyType), new HashMap<V, K>());
        // TODO: cpovirk - Pre-size the HashMap based on the number of enum values?
        this.keyTypeOrObjectUnderJ2cl = keyType;
      }
    
      // Overriding these 3 methods to show that values may be null (but not keys)
    
      @Override
      K checkKey(K key) {
        return checkNotNull(key);
      }
    
      @CanIgnoreReturnValue
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     * weak references.
     *
     * <p><strong>Performance</strong>
     *
     * <p>The extra bookkeeping done by cycle detecting locks comes at some cost to performance.
     * Benchmarks (as of December 2011) show that:
     *
     * <ul>
     *   <li>for an unnested {@code lock()} and {@code unlock()}, a cycle detecting lock takes 38ns as
     *       opposed to the 24ns taken by a plain lock.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Monitor.java

     *   }
     * } else {
     *   // do other things since the monitor was not available
     * }
     * }</pre>
     *
     * <h2>Comparison with {@code synchronized} and {@code ReentrantLock}</h2>
     *
     * <p>The following examples show a simple threadsafe holder expressed using {@code synchronized},
     * {@link ReentrantLock}, and {@code Monitor}.
     *
     * <h3>{@code synchronized}</h3>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

        public Mall<? extends Outdoor>.Shop<Electronics> ownerTypeIsSubtype_supertypeWithWildcard(
            Outlet<Outdoor>.Shop<Electronics> shop) {
          return isSubtype(shop);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public Mall<?>.Shop<Electronics> ownerTypeIsSubtype_withWildcards(
            Outlet<? extends Outdoor>.Shop<Electronics> shop) {
          return isSubtype(shop);
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/PatternFilenameFilter.java

    import java.util.regex.Pattern;
    import java.util.regex.PatternSyntaxException;
    
    /**
     * File name filter that only accepts files matching a regular expression. This class is thread-safe
     * and immutable.
     *
     * @author Apple Chow
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class PatternFilenameFilter implements FilenameFilter {
    
      private final Pattern pattern;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java

            fail("mismatch at index " + i + ": " + reportContext(expectedList));
          }
        }
      }
    
      /**
       * Used to delay string formatting until actually required, as it otherwise shows up in the test
       * execution profile when running an extremely large numbers of tests.
       */
      private String reportContext(List<E> expected) {
        return Platform.format(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. guava-gwt/pom.xml

              <show>package</show>
            </configuration>
          </plugin>
          <!-- Disable "normal" testing, which doesn't work for GWT tests. -->
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 15:00:55 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top