Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for i2 (0.18 sec)

  1. guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      int hashMixed_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(I2, S1, D1, S2, I0);
          dummy += Objects.hashCode(D0, I1, S3, I2, S0);
        }
        return dummy;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

      private final IntegerSubscriber i2 = new IntegerSubscriber("i2");
      private final IntegerSubscriber i3 = new IntegerSubscriber("i3");
      private final ImmutableList<Subscriber> integerSubscribers =
          ImmutableList.of(
              subscriber(bus, i1, "handleInteger", Integer.class),
              subscriber(bus, i2, "handleInteger", Integer.class),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

      private final IntegerSubscriber i2 = new IntegerSubscriber("i2");
      private final IntegerSubscriber i3 = new IntegerSubscriber("i3");
      private final ImmutableList<Subscriber> integerSubscribers =
          ImmutableList.of(
              subscriber(bus, i1, "handleInteger", Integer.class),
              subscriber(bus, i2, "handleInteger", Integer.class),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      int hashMixed_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(I2, S1, D1, S2, I0);
          dummy += Objects.hashCode(D0, I1, S3, I2, S0);
        }
        return dummy;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultDependencyManagementImporter.java

                Iterator<Exclusion> i1 = ce1.iterator();
                Iterator<Exclusion> i2 = ce2.iterator();
                while (i1.hasNext() && i2.hasNext()) {
                    if (!equals(i1.next(), i2.next())) {
                        return false;
                    }
                }
                return !i1.hasNext() && !i2.hasNext();
            }
            return false;
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  6. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            List<Restriction> restrictions = new ArrayList<>(r1.size() + r2.size());
            Iterator<Restriction> i1 = r1.iterator();
            Iterator<Restriction> i2 = r2.iterator();
            Restriction res1 = i1.next();
            Restriction res2 = i2.next();
    
            boolean done = false;
            while (!done) {
                if (res1.getLowerBound() == null
                        || res2.getUpperBound() == null
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  7. tests/test_infer_param_optionality.py

    
    @item_router.get("/")
    def get_items(user_id: Optional[str] = None):
        if user_id is None:
            return [{"item_id": "i1", "user_id": "u1"}, {"item_id": "i2", "user_id": "u2"}]
        else:
            return [{"item_id": "i2", "user_id": user_id}]
    
    
    @item_router.get("/{item_id}")
    def get_item(item_id: str, user_id: Optional[str] = None):
        if user_id is None:
            return {"item_id": item_id}
        else:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 13.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        // Test & Verify
        Iterator<String> i1 = Iterables.consumingIterable(list).iterator();
        Iterator<String> i2 = Iterables.consumingIterable(list).iterator();
    
        i1.next();
        try {
          i2.next();
          fail("Concurrent modification should throw an exception.");
        } catch (ConcurrentModificationException cme) {
          // Pass
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IterablesTest.java

        // Test & Verify
        Iterator<String> i1 = Iterables.consumingIterable(list).iterator();
        Iterator<String> i2 = Iterables.consumingIterable(list).iterator();
    
        i1.next();
        try {
          i2.next();
          fail("Concurrent modification should throw an exception.");
        } catch (ConcurrentModificationException cme) {
          // Pass
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<String> list = Lists.newArrayList("a", "b");
    
        // Test & Verify
        Iterator<String> i1 = Iterators.consumingIterator(list.iterator());
        Iterator<String> i2 = Iterators.consumingIterator(list.iterator());
    
        i1.next();
        try {
          i2.next();
          fail("Concurrent modification should throw an exception.");
        } catch (ConcurrentModificationException cme) {
          // Pass
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
Back to top