Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 1,397 for isInteger (0.1 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

     */
    @GwtCompatible(emulated = true)
    abstract class AbstractAbstractFutureTest extends TestCase {
      private TestedFuture<Integer> future;
      private AbstractFuture<Integer> delegate;
    
      abstract AbstractFuture<Integer> newDelegate();
    
      @Override
      protected void setUp() {
        future = TestedFuture.create();
        delegate = newDelegate();
      }
    
      public void testPending() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

      }
    
      private static Function<Integer, Integer> add(final int delta) {
        return new Function<Integer, Integer>() {
          @Override
          public Integer apply(Integer input) {
            return input + delta;
          }
        };
      }
    
      private static AsyncCallable<Integer> asyncAdd(
          final ListenableFuture<Integer> future, final int delta, final Executor executor) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

        return tmp;
      }
    
      private static final Comparator<Integer> NATURAL_INTEGER =
          new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
              return o1.compareTo(o2);
            }
          };
    
      @Benchmark
      int arraysSortOrderingFromNatural(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body_multiple_params/test_tutorial001_an_py39.py

                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["path", "item_id"],
                        "msg": "value is not a valid integer",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/InternersTest.java

      }
    
    
      public void testWeak_afterGC() throws InterruptedException {
        Integer canonical = new Integer(5);
        Integer not = new Integer(5);
    
        Interner<Integer> pool = Interners.newWeakInterner();
        assertSame(canonical, pool.intern(canonical));
    
        WeakReference<Integer> signal = new WeakReference<>(canonical);
        canonical = null; // Hint to the JIT that canonical is unreachable
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        ImmutableList<Integer>[] array =
            (ImmutableList<Integer>[]) new ImmutableList<?>[] {ImmutableList.of(1)};
        TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {};
        ImmutableTypeToInstanceMap<Iterable<?>[]> map =
            ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build();
        assertEquals(1, map.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/IntMathTest.java

        assertMean(0, 0, 0);
        assertMean(-1, -1, -1);
        assertMean(Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE);
        assertMean(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
    
        // Exhaustive checks
        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int y : ALL_INTEGER_CANDIDATES) {
            assertMean(x, y);
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        TreeMultimap<String, Integer> multimap = createPopulate();
        SortedMap<String, Collection<Integer>> asMap = multimap.asMap();
        assertEquals(Ordering.natural(), asMap.comparator());
        assertEquals("foo", asMap.firstKey());
        assertEquals("tree", asMap.lastKey());
        Set<Integer> fooValues = ImmutableSet.of(1, 3, 7);
        Set<Integer> googleValues = ImmutableSet.of(2, 6);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/RegularImmutableMapMapInterfaceTest.java

    import java.util.Map;
    
    @GwtCompatible
    public class RegularImmutableMapMapInterfaceTest
        extends AbstractImmutableMapMapInterfaceTest<String, Integer> {
      @Override
      protected Map<String, Integer> makeEmptyMap() {
        return ImmutableMap.of();
      }
    
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        return ImmutableMap.of("one", 1, "two", 2, "three", 3);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 09 02:18:08 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/RegularImmutableMapMapInterfaceTest.java

    import java.util.Map;
    
    @GwtCompatible
    public class RegularImmutableMapMapInterfaceTest
        extends AbstractImmutableMapMapInterfaceTest<String, Integer> {
      @Override
      protected Map<String, Integer> makeEmptyMap() {
        return ImmutableMap.of();
      }
    
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        return ImmutableMap.of("one", 1, "two", 2, "three", 3);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 09 02:18:08 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top