Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for matches (0.18 sec)

  1. guava-tests/test/com/google/common/base/ToStringHelperTest.java

        assertTrue(toTest, toTest.matches(".*\\{field1\\=Hello\\}"));
      }
    
      public void testToStringLenient_oneIntegerField() {
        String toTest =
            MoreObjects.toStringHelper(new TestClass()).add("field1", Integer.valueOf(42)).toString();
        assertTrue(toTest, toTest.matches(".*\\{field1\\=42\\}"));
      }
    
      public void testToStringLenient_nullInteger() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/CharMatcher.java

      public abstract boolean matches(char c);
    
      // Non-static factories
    
      /** Returns a matcher that matches any character not matched by this matcher. */
      // @Override under Java 8 but not under Java 7
      public CharMatcher negate() {
        return new Negated(this);
      }
    
      /**
       * Returns a matcher that matches any character matched by both this matcher and {@code other}.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/CharMatcher.java

      public abstract boolean matches(char c);
    
      // Non-static factories
    
      /** Returns a matcher that matches any character not matched by this matcher. */
      // @Override under Java 8 but not under Java 7
      @Override
      public CharMatcher negate() {
        return new Negated(this);
      }
    
      /**
       * Returns a matcher that matches any character matched by both this matcher and {@code other}.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertTrue(matcher.matches(s.charAt(0)));
        assertTrue(matcher.apply(s.charAt(0)));
        assertEquals(0, matcher.indexIn(s));
        assertEquals(0, matcher.indexIn(s, 0));
        assertEquals(-1, matcher.indexIn(s, 1));
        assertEquals(0, matcher.lastIndexIn(s));
        assertTrue(matcher.matchesAnyOf(s));
        assertTrue(matcher.matchesAllOf(s));
        assertFalse(matcher.matchesNoneOf(s));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertTrue(matcher.matches(s.charAt(0)));
        assertTrue(matcher.apply(s.charAt(0)));
        assertEquals(0, matcher.indexIn(s));
        assertEquals(0, matcher.indexIn(s, 0));
        assertEquals(-1, matcher.indexIn(s, 1));
        assertEquals(0, matcher.lastIndexIn(s));
        assertTrue(matcher.matchesAnyOf(s));
        assertTrue(matcher.matchesAllOf(s));
        assertFalse(matcher.matchesNoneOf(s));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        assertTrue(toTest, toTest.matches(".*\\{field1\\=Hello\\}"));
      }
    
      public void testToStringLenient_oneIntegerField() {
        String toTest =
            MoreObjects.toStringHelper(new TestClass()).add("field1", Integer.valueOf(42)).toString();
        assertTrue(toTest, toTest.matches(".*\\{field1\\=42\\}"));
      }
    
      public void testToStringLenient_nullInteger() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

            } else if (userFriendly.matches("(?i)(?:Branch.*Prediction.*Hostile)")) {
              // Defeat branch predictor for: c < 0x80 ; branch taken 50% of the time.
              return 0x100;
            } else if (userFriendly.matches("(?i)(?:Greek|Cyrillic|European|ISO.?8859)")) {
              // Mostly 2-byte UTF-8 sequences - "European" text
              return 0x800;
            } else if (userFriendly.matches("(?i)(?:Chinese|Han|Asian|BMP)")) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/JdkPattern.java

      }
    
      private static final class JdkMatcher extends CommonMatcher {
        final Matcher matcher;
    
        JdkMatcher(Matcher matcher) {
          this.matcher = Preconditions.checkNotNull(matcher);
        }
    
        @Override
        public boolean matches() {
          return matcher.matches();
        }
    
        @Override
        public boolean find() {
          return matcher.find();
        }
    
        @Override
        public boolean find(int index) {
    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)
  9. guava/src/com/google/common/base/SmallCharMatcher.java

    import com.google.common.base.CharMatcher.NamedFastMatcher;
    import java.util.BitSet;
    
    /**
     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    @ElementTypesAreNonnullByDefault
    final class SmallCharMatcher extends NamedFastMatcher {
      static final int MAX_SIZE = 1023;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/PatternFilenameFilter.java

       * used in FilenameFilter.)
       */
      @Override
      public boolean accept(File dir, String fileName) {
        return pattern.matcher(fileName).matches();
      }
    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)
Back to top