Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for skipNulls (0.25 sec)

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

      }
    
      public void testSkipNulls() {
        Joiner skipNulls = J.skipNulls();
        checkNoOutput(skipNulls, ITERABLE_);
        checkNoOutput(skipNulls, ITERABLE_NULL);
        checkNoOutput(skipNulls, ITERABLE_NULL_NULL);
        checkNoOutput(skipNulls, ITERABLE_FOUR_NULLS);
        checkResult(skipNulls, ITERABLE_1, "1");
        checkResult(skipNulls, ITERABLE_12, "1-2");
        checkResult(skipNulls, ITERABLE_123, "1-2-3");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/JoinerTest.java

      }
    
      public void testSkipNulls() {
        Joiner skipNulls = J.skipNulls();
        checkNoOutput(skipNulls, ITERABLE_);
        checkNoOutput(skipNulls, ITERABLE_NULL);
        checkNoOutput(skipNulls, ITERABLE_NULL_NULL);
        checkNoOutput(skipNulls, ITERABLE_FOUR_NULLS);
        checkResult(skipNulls, ITERABLE_1, "1");
        checkResult(skipNulls, ITERABLE_12, "1-2");
        checkResult(skipNulls, ITERABLE_123, "1-2-3");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Joiner.java

     *
     * <pre>{@code
     * Joiner joiner = Joiner.on("; ").skipNulls();
     *  . . .
     * return joiner.join("Harry", null, "Ron", "Hermione");
     * }</pre>
     *
     * <p>This returns the string {@code "Harry; Ron; Hermione"}. Note that all input elements are
     * converted to strings using {@link Object#toString()} before being appended.
     *
     * <p>If neither {@link #skipNulls()} nor {@link #useForNull(String)} is specified, the joining
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Joiner.java

     *
     * <pre>{@code
     * Joiner joiner = Joiner.on("; ").skipNulls();
     *  . . .
     * return joiner.join("Harry", null, "Ron", "Hermione");
     * }</pre>
     *
     * <p>This returns the string {@code "Harry; Ron; Hermione"}. Note that all input elements are
     * converted to strings using {@link Object#toString()} before being appended.
     *
     * <p>If neither {@link #skipNulls()} nor {@link #useForNull(String)} is specified, the joining
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractIterator.java

     *
     * <p>Another example is an iterator that skips over null elements in a backing iterator. This could
     * be implemented as:
     *
     * <pre>{@code
     * public static Iterator<String> skipNulls(final Iterator<String> in) {
     *   return new AbstractIterator<String>() {
     *     protected String computeNext() {
     *       while (in.hasNext()) {
     *         String s = in.next();
     *         if (s != null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractIterator.java

     *
     * <p>Another example is an iterator that skips over null elements in a backing iterator. This could
     * be implemented as:
     *
     * <pre>{@code
     * public static Iterator<String> skipNulls(final Iterator<String> in) {
     *   return new AbstractIterator<String>() {
     *     protected String computeNext() {
     *       while (in.hasNext()) {
     *         String s = in.next();
     *         if (s != null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *       versa.
       *   <li>Inequality check is not performed against state mutation methods such as {@link
       *       List#add}, or functional update methods such as {@link
       *       com.google.common.base.Joiner#skipNulls}.
       *   <li>If the constructor or factory method used to construct instance takes a parameter that
       *       {@link AbstractPackageSanityTests} doesn't know how to construct, the test will fail.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *       versa.
       *   <li>Inequality check is not performed against state mutation methods such as {@link
       *       List#add}, or functional update methods such as {@link
       *       com.google.common.base.Joiner#skipNulls}.
       *   <li>If the constructor or factory method used to construct instance takes a parameter that
       *       {@link AbstractPackageSanityTests} doesn't know how to construct, the test will fail.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *   <li>Inequality check is not performed against state mutation methods such as {@link
       *       List#add}, or functional update methods such as {@link
       *       com.google.common.base.Joiner#skipNulls}.
       * </ul>
       *
       * <p>Note that constructors taking a builder object cannot be tested effectively because
       * semantics of builder can be arbitrarily complex. Still, a factory class can be created in the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *   <li>Inequality check is not performed against state mutation methods such as {@link
       *       List#add}, or functional update methods such as {@link
       *       com.google.common.base.Joiner#skipNulls}.
       * </ul>
       *
       * <p>Note that constructors taking a builder object cannot be tested effectively because
       * semantics of builder can be arbitrarily complex. Still, a factory class can be created in the
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top