Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 655 for colist (0.07 sec)

  1. guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java

    import java.util.List;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Test suite covering {@link Longs#asList(long[])}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    public class LongArrayAsListTest extends TestCase {
    
      private static List<Long> asList(Long[] values) {
        long[] temp = new long[values.length];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java

      }
    
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testForEach_nullKeys() {
        initMapWithNullKey();
        List<Entry<K, V>> expectedEntries = asList(createArrayWithNullKey());
        List<Entry<K, V>> entries = new ArrayList<>();
        getMap().forEach((k, v) -> entries.add(entry(k, v)));
        assertEqualIgnoringOrder(expectedEntries, entries);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListTest.java

      }
    
      public void testBuilderAddAll_iterable() {
        List<String> a = asList("a", "b");
        List<String> b = asList("c", "d");
        ImmutableList<String> list = new ImmutableList.Builder<String>().addAll(a).addAll(b).build();
        assertEquals(asList("a", "b", "c", "d"), list);
        b.set(0, "f");
        assertEquals(asList("a", "b", "c", "d"), list);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  4. compat/maven-model/src/test/java/org/apache/maven/model/merge/MavenMergerTest.java

                    Contributor.newBuilder().email("******@****.***").build();
    
            Model target =
                    Model.newBuilder().contributors(Arrays.asList(contributor)).build();
    
            Model source =
                    Model.newBuilder().contributors(Arrays.asList(contributor)).build();
    
            Model merged = mavenMerger.merge(target, source, true, null);
    
            assertThat(merged.getContributors(), contains(contributor));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        assertEquals(HashMultiset.create(asList("a", "b", "a", "c")), multiset);
      }
    
      public void testBuilderAddAll() {
        List<String> a = asList("a", "b");
        List<String> b = asList("c", "d");
        ImmutableSortedMultiset<String> multiset =
            ImmutableSortedMultiset.<String>naturalOrder().addAll(a).addAll(b).build();
        assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SparseImmutableTable.java

      Cell<R, C, V> getCell(int index) {
        int rowIndex = cellRowIndices[index];
        Entry<R, ImmutableMap<C, V>> rowEntry = rowMap.entrySet().asList().get(rowIndex);
        ImmutableMap<C, V> row = rowEntry.getValue();
        int columnIndex = cellColumnInRowIndices[index];
        Entry<C, V> colEntry = row.entrySet().asList().get(columnIndex);
        return cellOf(rowEntry.getKey(), colEntry.getKey(), colEntry.getValue());
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        List<Integer> list = asList(4, 2, 3, 5, 1);
        assertEquals(
            asList(1, 2, 3, 4, 5), Ordering.<Integer>natural().leastOf(list, Integer.MAX_VALUE));
      }
    
      public void testLeastOfIteratorLargeK() {
        List<Integer> list = asList(4, 2, 3, 5, 1);
        assertEquals(
            asList(1, 2, 3, 4, 5),
            Ordering.<Integer>natural().leastOf(list.iterator(), Integer.MAX_VALUE));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/OrderingTest.java

        List<Integer> list = asList(4, 2, 3, 5, 1);
        assertEquals(
            asList(1, 2, 3, 4, 5), Ordering.<Integer>natural().leastOf(list, Integer.MAX_VALUE));
      }
    
      public void testLeastOfIteratorLargeK() {
        List<Integer> list = asList(4, 2, 3, 5, 1);
        assertEquals(
            asList(1, 2, 3, 4, 5),
            Ordering.<Integer>natural().leastOf(list.iterator(), Integer.MAX_VALUE));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

            .testEquals();
      }
    
      public void testIsInOrder() {
        assertFalse(isInOrder(asList(5, 3, 0, 9), Ordering.natural()));
        assertFalse(isInOrder(asList(0, 5, 3, 9), Ordering.natural()));
        assertTrue(isInOrder(asList(0, 3, 5, 9), Ordering.natural()));
        assertTrue(isInOrder(asList(0, 0, 3, 3), Ordering.natural()));
        assertTrue(isInOrder(asList(0, 3), Ordering.natural()));
        assertTrue(isInOrder(singleton(1), Ordering.natural()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/BytesTest.java

      public void testToArray_withNull() {
        List<@Nullable Byte> list = Arrays.asList((byte) 0, (byte) 1, null);
        assertThrows(NullPointerException.class, () -> Bytes.toArray(list));
      }
    
      public void testToArray_withConversion() {
        byte[] array = {(byte) 0, (byte) 1, (byte) 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top