Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for usable (0.17 sec)

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

          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      // TODO(b/172823566): Use mainline testToImmutableSetMultimap once CollectorTester is usable.
      public void testToImmutableSetMultimap_java7_combine() {
        ImmutableSetMultimap.Builder<String, Integer> zis =
            ImmutableSetMultimap.<String, Integer>builder().put("a", 1).put("b", 2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        assertMapEquals(copy, "one", 1, "two", 2, "three", 3);
        assertSame(copy, ImmutableMap.copyOf(copy));
      }
    
      // TODO(b/172823566): Use mainline testToImmutableMap once CollectorTester is usable to java7.
      public void testToImmutableMap_java7_combine() {
        ImmutableMap.Builder<String, Integer> zis =
            ImmutableMap.<String, Integer>builder().put("one", 1);
        ImmutableMap.Builder<String, Integer> zat =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

          fail("Expected NPE");
        } catch (NullPointerException expected) {
        }
      }
    
      // TODO(b/172823566): Use mainline testToImmutableList once CollectorTester is usable to java7.
      public void testToImmutableList_java7_combine() {
        ImmutableList.Builder<String> zis = ImmutableList.<String>builder().add("a", "b");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          // fail(), but with the JUnit-supplied message.
          assertEquals("Started with " + startedWith, expected, actual);
        }
      }
    
      // J2kt cannot translate the Comparable rawtype in a usable way (it becomes Comparable<Object>
      // but types are typically only Comparable to themselves).
      @SuppressWarnings({"rawtypes", "unchecked"})
      private static MinMaxPriorityQueue.Builder<Comparable<?>> rawtypeToWildcard(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      // TODO(b/172823566): Use mainline testToImmutableListMultimap once CollectorTester is usable.
      public void testToImmutableListMultimap_java7_combine() {
        ImmutableListMultimap.Builder<String, Integer> zis =
            ImmutableListMultimap.<String, Integer>builder().put("a", 1).put("b", 2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertSame(STRING_LENGTH, set.comparator());
      }
    
      // TODO(b/172823566): Use mainline testToImmutableSortedSet once CollectorTester is usable.
      public void testToImmutableSortedSet_java7() {
        // Note that a Collector should generally enforce consistent comparator between builders
        ImmutableSortedSet.Builder<String> zis =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        assertMapEquals(map, "two", 2, "three", 3, "one", 1, "four", 4, "five", 5);
        assertSame(comparator, map.comparator());
      }
    
      // TODO(b/172823566): Use mainline testToImmutableSortedMap once CollectorTester is usable.
      public void testToImmutableSortedMap_java7_combine() {
        ImmutableSortedMap.Builder<String, Integer> zis =
            ImmutableSortedMap.<String, Integer>naturalOrder().put("one", 1).put("four", 4);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 27K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TreeMultiset.java

          AvlNode<E> newRoot = new AvlNode<>(element, occurrences);
          successor(header, newRoot, header);
          rootReference.checkAndSet(root, newRoot);
          return 0;
        }
        int[] result = new int[1]; // used as a mutable int reference to hold result
        AvlNode<E> newRoot = root.add(comparator(), element, occurrences, result);
        rootReference.checkAndSet(root, newRoot);
        return result[0];
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TableCollectors.java

        final Table<R, C, MutableCell<R, C, V>> table = HashBasedTable.create();
    
        void put(R row, C column, V value, BinaryOperator<V> merger) {
          MutableCell<R, C, V> oldCell = table.get(row, column);
          if (oldCell == null) {
            MutableCell<R, C, V> cell = new MutableCell<>(row, column, value);
            insertionOrder.add(cell);
            table.put(row, column, cell);
          } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Throwables.java

      }
    
      /**
       * Returns the innermost cause of {@code throwable}. The first throwable in a chain provides
       * context from when the error or exception was initially detected. Example usage:
       *
       * <pre>
       * assertEquals("Unable to assign a customer id", Throwables.getRootCause(e).getMessage());
       * </pre>
       *
       * @throws IllegalArgumentException if there is a loop in the causal chain
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
Back to top