Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for useForNull (0.07 sec)

  1. guava-tests/test/com/google/common/base/JoinerTest.java

        Joiner j = Joiner.on("x").useForNull("y");
        assertThrows(UnsupportedOperationException.class, j::skipNulls);
      }
    
      public void test_skipNulls_useForNull() {
        Joiner j = Joiner.on("x").skipNulls();
        assertThrows(UnsupportedOperationException.class, () -> j.useForNull("y"));
      }
    
      public void test_useForNull_twice() {
        Joiner j = Joiner.on("x").useForNull("y");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/Types.java

     *
     * @author Ben Yu
     */
    @ElementTypesAreNonnullByDefault
    final class Types {
    
      /** Class#toString without the "class " and "interface " prefixes */
      private static final Joiner COMMA_JOINER = Joiner.on(", ").useForNull("null");
    
      /** Returns the array type of {@code componentType}. */
      static Type newArrayType(Type componentType) {
        if (componentType instanceof WildcardType) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

                    List<Object> factoryArgs = argGroups.get(item.groupNumber).get(item.itemNumber);
                    return factory.getName()
                        + "("
                        + Joiner.on(", ").useForNull("null").join(factoryArgs)
                        + ")";
                  }
                });
        tester.addEqualityGroup(instance, createInstance(factory, equalArgs));
        for (int i = 0; i < params.size(); i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top