Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 97 of 97 for bear (3.06 sec)

  1. 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)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        class Bar<T> {}
        class SubBar<T> extends Bar<T> {
          @SuppressWarnings("unused")
          Bar<T> delegate;
    
          TypeToken<SubBar<T>> fieldTypeAsSubBar() {
            return new TypeToken<SubBar<T>>() {};
          }
        }
    
        Field delegateField = SubBar.class.getDeclaredField("delegate");
        // barType is Bar<T>, a ParameterizedType with no generic arguments specified
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableTable.java

       *
       * <pre>{@code
       * static final ImmutableTable<Integer, Character, String> SPREADSHEET =
       *     new ImmutableTable.Builder<Integer, Character, String>()
       *         .put(1, 'A', "foo")
       *         .put(1, 'B', "bar")
       *         .put(2, 'A', "baz")
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>By default, the order in which cells are added to the builder determines the iteration
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 17.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashSet.java

        for (int i = 0; i < elementCount; i++) {
          E element = (E) stream.readObject();
          add(element);
        }
      }
    
      /*
       * For discussion of the safety of the following methods, see the comments near the end of
       * CompactHashMap.
       */
    
      private Object requireTable() {
        return requireNonNull(table);
      }
    
      private int[] requireEntries() {
        return requireNonNull(entries);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. guava/src/com/google/common/collect/CompactHashMap.java

           * that behavior is undefined when the backing map is modified through another API. (It even
           * permits us to throw IllegalStateException. Maybe we should have done that, but we probably
           * shouldn't change now for fear of breaking people.)
           */
          return (lastKnownIndex == -1) ? unsafeNull() : value(lastKnownIndex);
        }
    
        @Override
        @ParametricNullness
        public V setValue(@ParametricNullness V value) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
Back to top