Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 359 for Sellers (0.17 sec)

  1. guava-testlib/src/com/google/common/collect/testing/Helpers.java

    import junit.framework.Assert;
    import junit.framework.AssertionFailedError;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class Helpers {
      // Clone of Objects.equal
      static boolean equal(@Nullable Object a, @Nullable Object b) {
        return a == b || (a != null && a.equals(b));
      }
    
      // Clone of Lists.newArrayList
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        List<Entry<K, V>> expected = Helpers.copyToList(getSampleElements());
        replaceValue(expected, newEntry);
        expectContents(expected);
      }
    
      private void replaceValue(List<Entry<K, V>> expected, Entry<K, V> newEntry) {
        for (ListIterator<Entry<K, V>> i = expected.listIterator(); i.hasNext(); ) {
          if (Helpers.equal(i.next().getKey(), newEntry.getKey())) {
            i.set(newEntry);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        List<?> list = Arrays.asList("a", "b");
        Helpers.assertContains(list, "a");
        Helpers.assertContains(list, "b");
    
        try {
          Helpers.assertContains(list, "c");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
      public void testAssertContainsAllOf() {
        List<?> list = Arrays.asList("a", "a", "b", "c");
        Helpers.assertContainsAllOf(list, "a");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

      public void testEntrySetEquals() {
        resetContainer(
            Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> expected = Sets.newHashSet();
        expected.add(Helpers.mapEntry(k0(), (Collection<V>) Sets.newHashSet(v0(), v3())));
        expected.add(Helpers.mapEntry(k1(), (Collection<V>) Sets.newHashSet(v0())));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

     * the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.testing.Helpers.assertContentsAnyOrder;
    import static com.google.common.collect.testing.Helpers.assertContentsInOrder;
    import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ITERATOR_REMOVE;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 5.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        try {
          assertFalse(getMap().entrySet().contains(Helpers.mapEntry(IncomparableType.INSTANCE, v0())));
        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      public void testContainsEntryWithIncomparableValue() {
        try {
          assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), IncomparableType.INSTANCE)));
        } catch (ClassCastException acceptable) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java

      @Override
      public SampleElements<Entry<String, String>> samples() {
        return new SampleElements<>(
            Helpers.mapEntry("one", "January"),
            Helpers.mapEntry("two", "February"),
            Helpers.mapEntry("three", "March"),
            Helpers.mapEntry("four", "April"),
            Helpers.mapEntry("five", "May"));
      }
    
      @Override
      public SampleElements<String> sampleKeys() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/PairedStats.java

       * Internal constructor. Users should use {@link PairedStatsAccumulator#snapshot}.
       *
       * <p>To ensure that the created instance obeys its contract, the parameters should satisfy the
       * following constraints. This is the callers responsibility and is not enforced here.
       *
       * <ul>
       *   <li>Both {@code xStats} and {@code yStats} must have the same {@code count}.
       *   <li>If that {@code count} is 1, {@code sumOfProductsOfDeltas} must be exactly 0.0.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

       */
      public static Method[] getHoleMethods() {
        return new Method[] {
          Helpers.getMethod(NavigableSetNavigationTester.class, "testLowerHole"),
          Helpers.getMethod(NavigableSetNavigationTester.class, "testFloorHole"),
          Helpers.getMethod(NavigableSetNavigationTester.class, "testCeilingHole"),
          Helpers.getMethod(NavigableSetNavigationTester.class, "testHigherHole"),
        };
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        public SampleElements<Entry<Country, Currency>> samples() {
          return new SampleElements<>(
              Helpers.mapEntry(Country.CANADA, Currency.DOLLAR),
              Helpers.mapEntry(Country.CHILE, Currency.PESO),
              Helpers.mapEntry(Country.UK, Currency.POUND),
              Helpers.mapEntry(Country.JAPAN, Currency.YEN),
              Helpers.mapEntry(Country.SWITZERLAND, Currency.FRANC));
        }
    
        @SuppressWarnings("unchecked")
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
Back to top