Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for useForNull (0.04 sec)

  1. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Joiner.java

     *
     * <p>If neither {@link #skipNulls()} nor {@link #useForNull(String)} is specified, the joining
     * methods will throw {@link NullPointerException} if any given element is null.
     *
     * <p><b>Warning: joiner instances are always immutable</b>; a configuration method such as {@code
     * useForNull} has no effect on the instance it is invoked on! You must store and use the new joiner
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Joiner.java

     *
     * <p>If neither {@link #skipNulls()} nor {@link #useForNull(String)} is specified, the joining
     * methods will throw {@link NullPointerException} if any given element is null.
     *
     * <p><b>Warning: joiner instances are always immutable</b>; a configuration method such as {@code
     * useForNull} has no effect on the instance it is invoked on! You must store and use the new joiner
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 21K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/Types.java

     *
     * @author Ben Yu
     */
    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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/Types.java

     *
     * @author Ben Yu
     */
    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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  7. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top