Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for pattern (0.15 sec)

  1. guava/src/com/google/common/base/JdkPattern.java

    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    /** A regex pattern implementation which is backed by the {@link Pattern}. */
    @ElementTypesAreNonnullByDefault
    @GwtIncompatible
    final class JdkPattern extends CommonPattern implements Serializable {
      private final Pattern pattern;
    
      JdkPattern(Pattern pattern) {
        this.pattern = Preconditions.checkNotNull(pattern);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Predicates.java

            // Pattern uses Object (identity) equality, so we have to reach
            // inside to compare individual fields.
            return Objects.equal(pattern.pattern(), that.pattern.pattern())
                && pattern.flags() == that.pattern.flags();
          }
          return false;
        }
    
        @Override
        public String toString() {
          String patternString =
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      @GwtIncompatible // java.util.regex.Pattern
      public void testContains_equals() {
        new EqualsTester()
            .addEqualityGroup(
                Predicates.contains(Pattern.compile("foo")), Predicates.containsPattern("foo"))
            .addEqualityGroup(Predicates.contains(Pattern.compile("foo", Pattern.CASE_INSENSITIVE)))
            .addEqualityGroup(Predicates.containsPattern("bar"))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/JdkPattern.java

    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    /** A regex pattern implementation which is backed by the {@link Pattern}. */
    @ElementTypesAreNonnullByDefault
    @GwtIncompatible
    final class JdkPattern extends CommonPattern implements Serializable {
      private final Pattern pattern;
    
      JdkPattern(Pattern pattern) {
        this.pattern = Preconditions.checkNotNull(pattern);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingMapEntry.java

     * one or more methods to modify the behavior of the backing map entry as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * <p><b>Warning:</b> The methods of {@code ForwardingMapEntry} forward <i>indiscriminately</i> to
     * the methods of the delegate. For example, overriding {@link #getValue} alone <i>will not</i>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Mar 19 19:28:11 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top