Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for center (0.18 sec)

  1. android/guava/src/com/google/common/math/Quantiles.java

       * value returned by this method is the {@code i} in that range such that {@code allRequired[i]}
       * is as close as possible to the center of the range [{@code from}, {@code to}]. Choosing the
       * value closest to the center of the range first is the most efficient strategy because it
       * minimizes the size of the subranges from which the remaining selections must be done.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        final Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return q.toArray(a);
        } finally {
          monitor.leave();
        }
      }
    
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public String toString() {
        final Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return q.toString();
        } finally {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java

        @Inject
        private SessionScope sessionScope;
    
        protected String component() {
            return "installer";
        }
    
        @Test
        void testArtifactInstallation() throws Exception {
            sessionScope.enter();
            try {
                sessionScope.seed(MavenSession.class, mock(MavenSession.class));
    
                String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/artifact/DependencyResolutionRequiredException.java

     * under the License.
     */
    package org.apache.maven.artifact;
    
    /**
     * Exception that occurs when an artifact file is used, but has not been resolved.
     *
     * TODO it may be better for artifact.getFile() to throw it - perhaps it is a runtime exception?
     */
    public class DependencyResolutionRequiredException extends Exception {
        public DependencyResolutionRequiredException(Artifact artifact) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/InvalidatableSet.java

        // unless it's actually going to be used; validate() is called for all set method calls, so it
        // needs to be fast.
        // (We could instead generate the message once, when the set is created, but zero is better.)
        if (!validator.get()) {
          throw new IllegalStateException(errorMessage.get());
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java

        linkedHashMultiset = LinkedHashMultiset.create(size);
        treeMultiset = TreeMultiset.create();
    
        Random random = new Random();
    
        int sizeRemaining = size;
    
        // TODO(kevinb): generate better test contents for multisets
        for (int i = 0; sizeRemaining > 0; i++) {
          // The JVM will return interned values for small ints.
          Integer value = random.nextInt(1000) + 128;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

       * methods that do not take an explicit timeout value, a single test case is generated only if the
       * implicit timeout of that method matches the given timeoutsToUse. For example, enter() is
       * treated like enter(MAX, MILLIS) and tryEnter() is treated like enter(0, MILLIS).
       */
      private static void addTests(
          TestSuite suite,
          Method method,
          Scenario scenario,
          TimeoutsToUse timeoutsToUse,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractSortedMultiset.java

     *
     * <p>The {@link #count} and {@link #size} implementations all iterate across the set returned by
     * {@link Multiset#entrySet()}, as do many methods acting on the set returned by {@link
     * #elementSet()}. Override those methods for better performance.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    abstract class AbstractSortedMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

        // GWT's ConcurrentHashMap is a wrapper around HashMap, but it rejects null keys, which matches
        // the behaviour of the non-GWT implementation of newConcurrentHashSet().
        // On the other hand HashSet might be better for code size if apps aren't
        // already using Collections.newSetFromMap and ConcurrentHashMap.
        return Collections.newSetFromMap(new ConcurrentHashMap<E, Boolean>());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 29 18:16:45 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractMultiset.java

     *
     * <p>The {@link #count} and {@link #size} implementations all iterate across the set returned by
     * {@link Multiset#entrySet()}, as do many methods acting on the set returned by {@link
     * #elementSet()}. Override those methods for better performance.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class AbstractMultiset<E extends @Nullable Object> extends AbstractCollection<E>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 6K bytes
    - Viewed (0)
Back to top