Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for trim (0.16 sec)

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

        new EqualsTester()
            .addEqualityGroup(trimEqualsFoo, Predicates.compose(equalsFoo, trim))
            .addEqualityGroup(equalsFoo)
            .addEqualityGroup(trim)
            .addEqualityGroup(Predicates.compose(equalsFoo, identity))
            .addEqualityGroup(Predicates.compose(equalsBar, trim))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        new EqualsTester()
            .addEqualityGroup(trimEqualsFoo, Predicates.compose(equalsFoo, trim))
            .addEqualityGroup(equalsFoo)
            .addEqualityGroup(trim)
            .addEqualityGroup(Predicates.compose(equalsFoo, identity))
            .addEqualityGroup(Predicates.compose(equalsBar, trim))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       * value slightly too high than slightly too low. If the value is not exact, the {@link
       * ImmutableIntArray} that is built will very likely occupy more memory than strictly necessary;
       * to trim memory usage, build using {@code builder.build().trimmed()}.
       */
      public static Builder builder(int initialCapacity) {
        checkArgument(initialCapacity >= 0, "Invalid initialCapacity: %s", initialCapacity);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       * value slightly too high than slightly too low. If the value is not exact, the {@link
       * ImmutableDoubleArray} that is built will very likely occupy more memory than strictly
       * necessary; to trim memory usage, build using {@code builder.build().trimmed()}.
       */
      public static Builder builder(int initialCapacity) {
        checkArgument(initialCapacity >= 0, "Invalid initialCapacity: %s", initialCapacity);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/FloatsTest.java

      /**
       * A reference implementation for {@code tryParse} that just catches the exception from {@link
       * Float#valueOf}.
       */
      private static @Nullable Float referenceTryParse(String input) {
        if (input.trim().length() < input.length()) {
          return null;
        }
        try {
          return Float.valueOf(input);
        } catch (NumberFormatException e) {
          return null;
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TopKSelector.java

          buffer[bufferSize++] = elem;
          if (bufferSize == 2 * k) {
            trim();
          }
        }
      }
    
      /**
       * Quickselects the top k elements from the 2k elements in the buffer. O(k) expected time, O(k log
       * k) worst case.
       */
      @SuppressWarnings("nullness") // TODO: b/316358623 - Remove after checker fix.
      private void trim() {
        int left = 0;
        int right = 2 * k - 1;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Splitter.java

       * count. Hence, {@code Splitter.on(',').limit(3).omitEmptyStrings().split("a,,,b,,,c,d")} returns
       * an iterable containing {@code ["a", "b", "c,d"]}. When trim is requested, all entries are
       * trimmed, including the last. Hence {@code Splitter.on(',').limit(3).trimResults().split(" a , b
       * , c , d ")} results in {@code ["a", "b", "c , d"]}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      /**
       * A reference implementation for {@code tryParse} that just catches the exception from {@link
       * Float#valueOf}.
       */
      private static @Nullable Float referenceTryParse(String input) {
        if (input.trim().length() < input.length()) {
          return null;
        }
        try {
          return Float.valueOf(input);
        } catch (NumberFormatException e) {
          return null;
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixType.java

      PRIVATE(':', ','),
      /** Public suffix that is backed by an ICANN-style domain name registry */
      REGISTRY('!', '?');
    
      /** The character used for an inner node in the trie encoding */
      private final char innerNodeCode;
    
      /** The character used for a leaf node in the trie encoding */
      private final char leafNodeCode;
    
      PublicSuffixType(char innerNodeCode, char leafNodeCode) {
        this.innerNodeCode = innerNodeCode;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 2K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6QueueTests.java

    import java.util.Arrays;
    import java.util.Collection;
    import java.util.List;
    import java.util.Queue;
    import junit.framework.Test;
    
    /**
     * Tests the {@link Queue} implementations of {@link java.util}, suppressing tests that trip known
     * OpenJDK 6 bugs.
     *
     * @author Kevin Bourrillion
     */
    public class OpenJdk6QueueTests extends TestsForQueuesInJavaUtil {
      public static Test suite() {
        return new OpenJdk6QueueTests().allTests();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.5K bytes
    - Viewed (0)
Back to top