Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 145 for pattern (0.16 sec)

  1. android/guava/src/com/google/common/base/PatternCompiler.java

    /**
     * Pluggable interface for compiling a regex pattern. By default this package uses the {@code
     * java.util.regex} library, but an alternate implementation can be supplied using the {@link
     * java.util.ServiceLoader} mechanism.
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    interface PatternCompiler {
      /**
       * Compiles the given pattern.
       *
       * @throws IllegalArgumentException if the pattern is invalid
       */
      @RestrictedApi(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

       *     example, {@code "rpc-pool-%d"} will generate thread names like {@code "rpc-pool-0"}, {@code
       *     "rpc-pool-1"}, {@code "rpc-pool-2"}, etc.
       * @return this for the builder pattern
       */
      @CanIgnoreReturnValue
      public ThreadFactoryBuilder setNameFormat(String nameFormat) {
        String unused = format(nameFormat, 0); // fail fast if the format is bad or null
        this.nameFormat = nameFormat;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Platform.java

         * that, we hardcode the JDK Pattern compiler on Android (and, inadvertently, on App Engine and
         * in Guava, at least for now).
         */
        return new JdkPatternCompiler();
      }
    
      private static final class JdkPatternCompiler implements PatternCompiler {
        @Override
        public CommonPattern compile(String pattern) {
          return new JdkPattern(Pattern.compile(pattern));
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Splitter.java

       * Returns a splitter that considers any subsequence matching a given pattern (regular expression)
       * to be a separator. For example, {@code Splitter.onPattern("\r?\n").split(entireFile)} splits a
       * string into lines whether it uses DOS-style or UNIX-style line terminators. This is equivalent
       * to {@code Splitter.on(Pattern.compile(pattern))}.
       *
       * @param separatorPattern the pattern that determines whether a subsequence is a separator. This
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingSortedMultiset.java

     * should override one or more methods to modify the behavior of the backing multiset as desired per
     * the <a href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * <p><b>Warning:</b> The methods of {@code ForwardingSortedMultiset} forward
     * <b>indiscriminately</b> to the methods of the delegate. For example, overriding {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/SplitterTest.java

        Iterable<String> testPatterningMotto =
            Splitter.onPattern("-").split("Testing-rocks-Debugging-sucks");
        assertThat(testPatterningMotto)
            .containsExactly("Testing", "rocks", "Debugging", "sucks")
            .inOrder();
      }
    
      @GwtIncompatible // java.util.regex.Pattern
      private static Pattern literalDotPattern() {
        return Pattern.compile("\\.");
      }
    
      @GwtIncompatible // java.util.regex.Pattern
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testTryParseFailures() {
        for (String badInput : BAD_TRY_PARSE_INPUTS) {
          assertThat(badInput)
              .doesNotMatch(
                  Pattern.compile(
                      Doubles.FLOATING_POINT_PATTERN.pattern(),
                      Doubles.FLOATING_POINT_PATTERN.flags()));
          assertThat(Doubles.tryParse(badInput)).isEqualTo(referenceTryParse(badInput));
          assertThat(Doubles.tryParse(badInput)).isNull();
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testTryParseFailures() {
        for (String badInput : BAD_TRY_PARSE_INPUTS) {
          assertThat(badInput)
              .doesNotMatch(
                  Pattern.compile(
                      Doubles.FLOATING_POINT_PATTERN.pattern(),
                      Doubles.FLOATING_POINT_PATTERN.flags()));
          assertThat(Doubles.tryParse(badInput)).isEqualTo(referenceTryParse(badInput));
          assertThat(Doubles.tryParse(badInput)).isNull();
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingList.java

     * A list which forwards all its method calls to another list. Subclasses should override one or
     * more methods to modify the behavior of the backing list as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * <p>This class does not implement {@link java.util.RandomAccess}. If the delegate supports random
     * access, the {@code ForwardingList} subclass should implement the {@code RandomAccess} interface.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/Cache.java

       * Returns the value associated with {@code key} in this cache, obtaining that value from {@code
       * loader} if necessary. The method improves upon the conventional "if cached, return; otherwise
       * create, cache and return" pattern. For further improvements, use {@link LoadingCache} and its
       * {@link LoadingCache#get(Object) get(K)} method instead of this one.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 7.9K bytes
    - Viewed (1)
Back to top