Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for bear (0.12 sec)

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

        assertEquals(3, multimap.size());
        assertTrue(multimap.containsKey("bar"));
        assertEquals(Collections.singleton(2), multimap.removeAll("bar"));
        assertEquals(2, multimap.size());
        assertFalse(multimap.containsKey("bar"));
      }
    
      public void testForMapAsMap() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/NewCustomTableTest.java

        populate(table, data);
        return table;
      }
    
      public void testRowKeySetOrdering() {
        table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c');
        assertThat(table.rowKeySet()).containsExactly("foo", "bar").inOrder();
      }
    
      public void testRowOrdering() {
        table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c');
        assertThat(table.row("foo").keySet()).containsExactly(2, 3).inOrder();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TransposedTableTest.java

        assertEquals(original.row(1), transpose.column(1));
        assertEquals(original.row(2), transpose.column(2));
        assertEquals(original.column("foo"), transpose.row("foo"));
        assertEquals(original.column("bar"), transpose.row("bar"));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TablesTest.java

        Cell<String, Integer, Character> entry = Tables.immutableCell("foo", 1, 'a');
    
        new EqualsTester()
            .addEqualityGroup(entry, Tables.immutableCell("foo", 1, 'a'))
            .addEqualityGroup(Tables.immutableCell("bar", 1, 'a'))
            .addEqualityGroup(Tables.immutableCell("foo", 2, 'a'))
            .addEqualityGroup(Tables.immutableCell("foo", 1, 'b'))
            .addEqualityGroup(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       *
       * <pre>{@code
       * public static final ImmutableSortedMultiset<Bean> BEANS =
       *     new ImmutableSortedMultiset.Builder<Bean>(colorComparator())
       *         .addCopies(Bean.COCOA, 4)
       *         .addCopies(Bean.GARDEN, 6)
       *         .addCopies(Bean.RED, 8)
       *         .addCopies(Bean.BLACK_EYED, 10)
       *         .build();
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactLinkedHashMap.java

        links = null;
        return result;
      }
    
      /*
       * For discussion of the safety of the following methods for operating on predecessors and
       * successors, see the comments near the end of CompactHashMap, noting that the methods here call
       * link(), which is defined at the end of this file.
       */
    
      private int getPredecessor(int entry) {
        return ((int) (link(entry) >>> 32)) - 1;
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        MinMaxPriorityQueue<String> mmHeap =
            rawtypeToWildcard(MinMaxPriorityQueue.expectedSize(5)).create();
        Collections.addAll(mmHeap, "foo", "bar", "foobar", "barfoo", "larry", "sergey", "eric");
        assertTrue("Heap is not intact initially", mmHeap.isIntact());
        assertEquals("bar", mmHeap.peek());
        assertEquals("sergey", mmHeap.peekLast());
        assertEquals(7, mmHeap.size());
    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)
  8. guava-tests/test/com/google/common/net/MediaTypeTest.java

      public void testWithoutParameters() {
        assertSame(MediaType.parse("image/gif"), MediaType.parse("image/gif").withoutParameters());
        assertEquals(
            MediaType.parse("image/gif"), MediaType.parse("image/gif; foo=bar").withoutParameters());
      }
    
      public void testWithParameters() {
        assertEquals(
            MediaType.parse("text/plain; a=1; a=2; b=3"),
            MediaType.parse("text/plain").withParameters(PARAMETERS));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

      public void testWithoutParameters() {
        assertSame(MediaType.parse("image/gif"), MediaType.parse("image/gif").withoutParameters());
        assertEquals(
            MediaType.parse("image/gif"), MediaType.parse("image/gif; foo=bar").withoutParameters());
      }
    
      public void testWithParameters() {
        assertEquals(
            MediaType.parse("text/plain; a=1; a=2; b=3"),
            MediaType.parse("text/plain").withParameters(PARAMETERS));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top