Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Hager (0.15 sec)

  1. guava/src/com/google/common/base/Strings.java

       *     is reached
       * @return the padded string
       */
      public static String padStart(String string, int minLength, char padChar) {
        checkNotNull(string); // eager for GWT.
        if (string.length() >= minLength) {
          return string;
        }
        StringBuilder sb = new StringBuilder(minLength);
        for (int i = string.length(); i < minLength; i++) {
          sb.append(padChar);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

      }
    
      private static <K, V> ImmutableSetMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap,
          @CheckForNull Comparator<? super V> valueComparator) {
        checkNotNull(multimap); // eager for GWT
        if (multimap.isEmpty() && valueComparator == null) {
          return of();
        }
    
        if (multimap instanceof ImmutableSetMultimap) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Preconditions.java

        if (!expression) {
          throw new IllegalStateException(lenientFormat(errorMessageTemplate, p1, p2, p3, p4));
        }
      }
    
      /*
       * Preconditions.checkNotNull is *intended* for performing eager null checks on parameters that a
       * nullness checker can already "prove" are non-null. That means that the first parameter to
       * checkNotNull *should* be annotated to require it to be non-null.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    looking across the garden, called out `The Queen!  The Queen!'
    and the three gardeners instantly threw themselves flat upon
    their faces.  There was a sound of many footsteps, and Alice
    looked round, eager to see the Queen.
    
      First came ten soldiers carrying clubs; these were all shaped
    like the three gardeners, oblong and flat, with their hands and
    feet at the corners:  next the ten courtiers; these were
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

            public Lock get() {
              return new ReentrantLock();
            }
          };
    
      @Param({"2", "8", "64", "1024", "65536"})
      int numStripes;
    
      @Param Impl impl;
    
      enum Impl {
        EAGER {
          @Override
          Striped<Lock> get(int stripes) {
            return Striped.lock(stripes);
          }
        },
        LAZY_SMALL {
          @Override
          Striped<Lock> get(int stripes) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

            public Lock get() {
              return new ReentrantLock();
            }
          };
    
      @Param({"2", "8", "64", "1024", "65536"})
      int numStripes;
    
      @Param Impl impl;
    
      enum Impl {
        EAGER {
          @Override
          Striped<Lock> get(int stripes) {
            return Striped.lock(stripes);
          }
        },
        LAZY_SMALL {
          @Override
          Striped<Lock> get(int stripes) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Strings.java

       *     is reached
       * @return the padded string
       */
      public static String padStart(String string, int minLength, char padChar) {
        checkNotNull(string); // eager for GWT.
        if (string.length() >= minLength) {
          return string;
        }
        StringBuilder sb = new StringBuilder(minLength);
        for (int i = string.length(); i < minLength; i++) {
          sb.append(padChar);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Functions.java

      }
    
      // enum singleton pattern
      private enum ToStringFunction implements Function<Object, String> {
        INSTANCE;
    
        @Override
        public String apply(Object o) {
          checkNotNull(o); // eager for GWT.
          return o.toString();
        }
    
        @Override
        public String toString() {
          return "Functions.toStringFunction()";
        }
      }
    
      /**
       * Returns the identity function.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * a good policy, especially because, in order for the test to pass, the
       * parameter must be misleadingly annotated as @Nullable. I suspect that
       * we'll want to remove @Nullable, add an eager checkNotNull, and loosen up
       * testRemove_nullAllowed.
       */
      @CanIgnoreReturnValue
      @Override
      public int remove(@CheckForNull Object element, int occurrences) {
        if (occurrences == 0) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/PercentEscaper.java

        // TODO(dbeaumont): Switch to static factory methods for creation now that class is final.
        // TODO(dbeaumont): Support escapers where alphanumeric chars are not safe.
        checkNotNull(safeChars); // eager for GWT.
        // Avoid any misunderstandings about the behavior of this escaper
        if (safeChars.matches(".*[0-9A-Za-z].*")) {
          throw new IllegalArgumentException(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.7K bytes
    - Viewed (0)
Back to top