Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 146 for Catcher (0.05 seconds)

  1. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        private final EventBus bus;
        private final List<StringCatcher> catchers;
    
        Registrator(EventBus bus, List<StringCatcher> catchers) {
          this.bus = bus;
          this.catchers = catchers;
        }
    
        @Override
        public void run() {
          StringCatcher catcher = new StringCatcher();
          bus.register(catcher);
          catchers.add(catcher);
        }
      }
    
      /**
       * A collector for DeadEvents.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        private final EventBus bus;
        private final List<StringCatcher> catchers;
    
        Registrator(EventBus bus, List<StringCatcher> catchers) {
          this.bus = bus;
          this.catchers = catchers;
        }
    
        @Override
        public void run() {
          StringCatcher catcher = new StringCatcher();
          bus.register(catcher);
          catchers.add(catcher);
        }
      }
    
      /**
       * A collector for DeadEvents.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java

        bus = new AsyncEventBus(executor);
      }
    
      public void testBasicDistribution() {
        StringCatcher catcher = new StringCatcher();
        bus.register(catcher);
    
        // We post the event, but our Executor will not deliver it until instructed.
        bus.post(EVENT);
    
        List<String> events = catcher.getEvents();
        assertTrue("No events should be delivered synchronously.", events.isEmpty());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/crawler/rule/CrawlerRuleMimeTypePatternTest.java

            assertTrue(pattern.matcher("application/x-lha").matches());
            assertTrue(pattern.matcher("application/x-lha-compressed").matches());
        }
    
        @Test
        public void test_fsFileRulePattern_xmlTypes() {
            Pattern pattern = Pattern.compile(FS_FILE_RULE_PATTERN);
            assertTrue(pattern.matcher("application/xml").matches());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  5. guava/src/com/google/common/base/CharMatcher.java

        return new Negated(this);
      }
    
      /**
       * Returns a matcher that matches any character matched by both this matcher and {@code other}.
       */
      public CharMatcher and(CharMatcher other) {
        return new And(this, other);
      }
    
      /**
       * Returns a matcher that matches any character matched by either this matcher or {@code other}.
       */
      public CharMatcher or(CharMatcher other) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 54.4K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/base/CharMatcher.java

        return new Negated(this);
      }
    
      /**
       * Returns a matcher that matches any character matched by both this matcher and {@code other}.
       */
      public CharMatcher and(CharMatcher other) {
        return new And(this, other);
      }
    
      /**
       * Returns a matcher that matches any character matched by either this matcher or {@code other}.
       */
      public CharMatcher or(CharMatcher other) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.9K bytes
    - Click Count (0)
  7. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            inline fun <reified T> inAnyOrder(items: List<T>): Matcher<Iterable<T>> = inAnyOrder(items.toTypedArray())
    
            /**
             * Matcher checking each item is present exactly once in a given iterable, but an any position,
             * and that there are no unexpected items.
             */
            private
            fun <T> inAnyOrder(items: Array<out T>): Matcher<Iterable<T>> = Matchers.containsInAnyOrder(*items)
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jan 19 11:30:48 GMT 2026
    - 18.3K bytes
    - Click Count (0)
  8. guava/src/com/google/common/base/Splitter.java

        checkArgument(
            !separatorPattern.matcher("").matches(),
            "The pattern may not match the empty string: %s",
            separatorPattern);
    
        return new Splitter(
            (splitter, toSplit) -> {
              CommonMatcher matcher = separatorPattern.matcher(toSplit);
              return new SplittingIterator(splitter, toSplit) {
                @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 23.8K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/base/Splitter.java

        checkArgument(
            !separatorPattern.matcher("").matches(),
            "The pattern may not match the empty string: %s",
            separatorPattern);
    
        return new Splitter(
            (splitter, toSplit) -> {
              CommonMatcher matcher = separatorPattern.matcher(toSplit);
              return new SplittingIterator(splitter, toSplit) {
                @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 23.8K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      private static void checkTryParse(String input) {
        Double expected = referenceTryParse(input);
        assertThat(Doubles.tryParse(input)).isEqualTo(expected);
        if (expected != null && !Doubles.FLOATING_POINT_PATTERN.matcher(input).matches()) {
          // TODO(cpovirk): Use SourceCodeEscapers if it is added to Guava.
          StringBuilder escapedInput = new StringBuilder();
          for (char c : input.toCharArray()) {
            if (c >= 0x20 && c <= 0x7E) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 30.9K bytes
    - Click Count (0)
Back to Top