Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for CountingSupplier (0.07 seconds)

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

        memoizeTest(new SerializableCountingSupplier());
      }
    
      private void memoizeTest(CountingSupplier countingSupplier) {
        Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier);
        checkMemoize(countingSupplier, memoizedSupplier);
      }
    
      public void testMemoize_redudantly() {
        memoizeRedudantlyTest(new CountingSupplier());
        memoizeRedudantlyTest(new SerializableCountingSupplier());
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        memoizeTest(new SerializableCountingSupplier());
      }
    
      private void memoizeTest(CountingSupplier countingSupplier) {
        Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier);
        checkMemoize(countingSupplier, memoizedSupplier);
      }
    
      public void testMemoize_redudantly() {
        memoizeRedudantlyTest(new CountingSupplier());
        memoizeRedudantlyTest(new SerializableCountingSupplier());
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  3. 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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  4. 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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 16K bytes
    - Click Count (0)
  5. 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 Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 16K bytes
    - Click Count (0)
Back to Top