Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for CountingSupplier (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        RED,
        YELLOW,
        GREEN
      }
    
      private abstract static class CountingSupplier<E> implements Supplier<E>, Serializable {
        int count;
    
        abstract E getImpl();
    
        @Override
        public E get() {
          count++;
          return getImpl();
        }
      }
    
      private static class QueueSupplier extends CountingSupplier<Queue<Integer>> {
        @Override
        /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 39.2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/base/FunctionsTest.java

          if (obj instanceof CountingSupplier) {
            return this.value == ((CountingSupplier) obj).value;
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return value;
        }
      }
    
      public void testForSupplier() {
        Supplier<Integer> supplier = new CountingSupplier();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
Back to Top