Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,432 for integers (0.14 sec)

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

        NavigableMap<String, Integer> map = create();
        SortedMap<String, Integer> headMap = map.headMap("a");
        assertTrue(headMap instanceof SynchronizedSortedMap);
        assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex);
      }
    
      public void testHeadMap_k_b() {
        NavigableMap<String, Integer> map = create();
        NavigableMap<String, Integer> headMap = map.headMap("a", true);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testFilterUsingIteratorTester() {
        final List<Integer> list = asList(1, 2, 3, 4, 5);
        final Predicate<Integer> isEven =
            new Predicate<Integer>() {
              @Override
              public boolean apply(Integer integer) {
                return integer % 2 == 0;
              }
            };
        new IteratorTester<Integer>(
            5, UNMODIFIABLE, asList(2, 4), IteratorTester.KnownOrder.KNOWN_ORDER) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TablesTest.java

        Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a');
        SerializableTester.reserializeAndAssert(entry);
      }
    
      public void testImmutableEntryToString() {
        Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a');
        assertEquals("(foo,1)=a", entry.toString());
    
        Cell<@Nullable String, @Nullable Integer, @Nullable Character> nullEntry =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java

        int i = 0;
        for (Object e : elements) {
          array[i++] = (Integer) e;
        }
        return create(array);
      }
    
      protected abstract Set<Integer> create(Integer[] elements);
    
      @Override
      public Integer[] createArray(int length) {
        return new Integer[length];
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>By default, returns the supplied elements in their given order; however, generators for
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        Multimap<String, Integer> original = HashMultimap.create();
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original);
        assertEquals(3, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromArrayListMultimap() {
        ArrayListMultimap<String, Integer> original = ArrayListMultimap.create(15, 20);
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

          return makeArray(all).subArray(2, elements.length + 2).asList();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only from suite
      public static final class ImmutableIntArrayMiddleSubListAsListGenerator
          extends TestIntegerListGenerator {
        @Override
        protected List<Integer> create(Integer[] elements) {
          Integer[] prefix = {Integer.MIN_VALUE, Integer.MAX_VALUE};
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

          Arrays.sort(dataset);
          return singleQuantileFromSorted(index, scale, dataset);
        }
    
        @Override
        Map<Integer, Double> multipleQuantiles(
            Collection<Integer> indexes, int scale, double[] dataset) {
          Arrays.sort(dataset);
          ImmutableMap.Builder<Integer, Double> builder = ImmutableMap.builder();
          for (int index : indexes) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertFalse(Assignability.of().isAssignable());
        assertTrue(new Assignability<Integer, Integer>() {}.isAssignable());
        assertTrue(new Assignability<Integer, Object>() {}.isAssignable());
        assertFalse(new Assignability<Integer, String>() {}.isAssignable());
        TypeTokenTest.<Number, Integer>assignabilityTestWithTypeVariables();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

        public void testToObjectArray() throws Exception {
            final Object[] a = ArrayUtil.toObjectArray(new int[] { 1, 5, 2 });
            assertArrayEquals(new Integer[] { new Integer(1), new Integer(5), new Integer(2) }, a);
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = IllegalArgumentException.class)
        public void testToObjectArray_NoArray() throws Exception {
            ArrayUtil.toObjectArray("a");
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/IterablesFilterArrayListTest.java

    public final class IterablesFilterArrayListTest
        extends AbstractFilteredIterableTest<Iterable<Integer>> {
      @Override
      Iterable<Integer> createUnfiltered(Iterable<Integer> contents) {
        return Lists.newArrayList(contents);
      }
    
      @Override
      Iterable<Integer> filter(Iterable<Integer> elements, Predicate<? super Integer> predicate) {
        return Iterables.filter(elements, predicate);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 16 21:55:55 UTC 2022
    - 1.1K bytes
    - Viewed (0)
Back to top