Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for SortedMap (0.21 sec)

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

        return SortedMapTestSuiteBuilder.using(
                new TestStringSortedMapGenerator() {
                  @Override
                  protected SortedMap<String, String> create(Entry<String, String>[] entries) {
                    SortedMap<String, String> map = populate(new TreeMap<String, String>(), entries);
                    return Collections.checkedSortedMap(map, String.class, String.class);
                  }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        SortedMap<Integer, Character> row = sortedTable.row("c");
        assertEquals(2, row.size());
        assertEquals(1, row.tailMap(15).size());
      }
    
      public void testSubRowClearAndPut() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        SortedMap<Integer, Character> row = (SortedMap<Integer, Character>) table.row("foo");
        SortedMap<Integer, Character> subRow = row.tailMap(2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

        return SortedMapTestSuiteBuilder.using(
                new TestStringSortedMapGenerator() {
                  @Override
                  protected SortedMap<String, String> create(Entry<String, String>[] entries) {
                    SortedMap<String, String> map = populate(new TreeMap<String, String>(), entries);
                    return Collections.checkedSortedMap(map, String.class, String.class);
                  }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        SortedMap<Integer, Character> row = sortedTable.row("c");
        assertEquals(2, row.size());
        assertEquals(1, row.tailMap(15).size());
      }
    
      public void testSubRowClearAndPut() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        SortedMap<Integer, Character> row = (SortedMap<Integer, Character>) table.row("foo");
        SortedMap<Integer, Character> subRow = row.tailMap(2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Unit tests for {@code TreeMultimap} with natural ordering.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        ImmutableSortedMap.Builder<String, Integer> zat =
            ImmutableSortedMap.<String, Integer>naturalOrder().put("two", 2).put("three", 3);
        ImmutableSortedMap<String, Integer> sortedMap = zis.combine(zat).build();
        assertMapEquals(sortedMap, "four", 4, "one", 1, "three", 3, "two", 2);
      }
    
      // TODO(b/172823566): Use mainline testToImmutableSortedMap once CollectorTester is usable.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 27K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Unit tests for {@code TreeMultimap} with natural ordering.
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

    import java.io.Serializable;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.TreeMap;
    import java.util.function.BiPredicate;
    import java.util.stream.Collector;
    import java.util.stream.Stream;
    import junit.framework.Test;
    import junit.framework.TestCase;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        }
      }
    
      private static void removeMinFromReplica(
          SortedMap<Integer, AtomicInteger> replica, int minValue) {
        Integer replicatedMinValue = replica.firstKey();
        assertEquals(replicatedMinValue, (Integer) minValue);
        removeFromReplica(replica, replicatedMinValue);
      }
    
      private static void removeMaxFromReplica(
          SortedMap<Integer, AtomicInteger> replica, int maxValue) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import java.util.Optional;
    import java.util.OptionalDouble;
    import java.util.OptionalInt;
    import java.util.OptionalLong;
    import java.util.Queue;
    import java.util.Random;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import java.util.UUID;
    import java.util.concurrent.BlockingDeque;
    import java.util.concurrent.BlockingQueue;
    import java.util.concurrent.ConcurrentHashMap;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
Back to top