Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for buses (0.12 sec)

  1. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        try {
          UnsignedInts.decode("-05");
          fail();
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testToString() {
        int[] bases = {2, 5, 7, 8, 10, 16};
        for (long a : UNSIGNED_INTS) {
          for (int base : bases) {
            assertThat(Long.toString(a, base)).isEqualTo(UnsignedInts.toString((int) a, base));
          }
        }
      }
    
      public void testJoin() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/LongMath.java

          }
        }
        throw new AssertionError();
      }
    
      /*
       * If n <= millerRabinBases[i][0], then testing n against bases millerRabinBases[i][1..] suffices
       * to prove its primality. Values from miller-rabin.appspot.com.
       *
       * NOTE: We could get slightly better bases that would be treated as unsigned, but benchmarks
       * showed negligible performance improvements.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Comparators.java

       *
       * <pre>{@code
       * Stream.of("foo", "quux", "banana", "elephant")
       *     .collect(least(2, comparingInt(String::length)))
       * // returns {"foo", "quux"}
       * }</pre>
       *
       * <p>This {@code Collector} uses O(k) memory and takes expected time O(n) (worst-case O(n log
       * k)), as opposed to e.g. {@code Stream.sorted(comparator).limit(k)}, which currently takes O(n
       * log n) time and O(n) space.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

            this.runnable = runnable;
            this.executor = executor;
            this.next = next;
          }
        }
      }
    
      // A version of the ExecutionList that uses an explicit tail pointer to keep the nodes in order
      // rather than flipping the stack in execute().
      private static final class NewExecutionListQueue {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

     * {@code Iterable}. Except as noted, each method has a corresponding {@link Iterator}-based method
     * in the {@link Iterators} class.
     *
     * <p><b>Java 8+ users:</b> several common uses for this class are now more comprehensively
     * addressed by the new {@link java.util.stream.Stream} library. Read the method documentation below
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheBuilderSpec.java

                durationInNanos(that.refreshDuration, that.refreshTimeUnit));
      }
    
      /**
       * Converts an expiration duration/unit pair into a single Long for hashing and equality. Uses
       * nanos to match CacheBuilder implementation.
       */
      @CheckForNull
      private static Long durationInNanos(long duration, @CheckForNull TimeUnit unit) {
        return (unit == null) ? null : unit.toNanos(duration);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        }
        try {
          iia3.subArray(1, 4);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
      }
    
      /*
       * Whenever an implementation uses `instanceof` on a parameter instance, the test has to know that
       * (so much for "black box") and try instances that both do and don't pass the check. The "don't"
       * half of that is more awkward to arrange...
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        }
        try {
          iia3.subArray(1, 4);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
      }
    
      /*
       * Whenever an implementation uses `instanceof` on a parameter instance, the test has to know that
       * (so much for "black box") and try instances that both do and don't pass the check. The "don't"
       * half of that is more awkward to arrange...
       */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       *
       * <p><b>Performance note:</b> this method delegates to {@link #copyOf(Collection)} if {@code
       * values} is a {@link Collection}. Otherwise it creates a {@link #builder} and uses {@link
       * Builder#addAll(Iterable)}, with all the performance implications associated with that.
       */
      public static ImmutableIntArray copyOf(Iterable<Integer> values) {
        if (values instanceof Collection) {
    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)
  10. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       *
       * <p><b>Performance note:</b> this method delegates to {@link #copyOf(Collection)} if {@code
       * values} is a {@link Collection}. Otherwise it creates a {@link #builder} and uses {@link
       * Builder#addAll(Iterable)}, with all the performance implications associated with that.
       */
      public static ImmutableDoubleArray copyOf(Iterable<Double> values) {
        if (values instanceof Collection) {
    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)
Back to top