Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 85 for Blog (0.22 sec)

  1. android/guava/src/com/google/common/io/Flushables.java

      /**
       * Flush a {@link Flushable}, with control over whether an {@code IOException} may be thrown.
       *
       * <p>If {@code swallowIOException} is true, then we don't rethrow {@code IOException}, but merely
       * log it.
       *
       * @param flushable the {@code Flushable} object to be flushed.
       * @param swallowIOException if true, don't propagate IO exceptions thrown by the {@code flush}
       *     method
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

                .collect(ImmutableList.toImmutableList()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create("BiMap.get", BiMap::get, Math::log),
                QueryOp.create("BiMap.inverse.get", (bm, o) -> bm.inverse().get(o), Math::log)));
      }
    
      /** All the ways to create an ImmutableBiMap. */
      enum ConstructionPathway {
        COPY_OF_MAP {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

          helper = new SynchronizedAtomicHelper();
        }
        ATOMIC_HELPER = helper;
        // Log after all static init is finished; if an installed logger uses any Futures methods, it
        // shouldn't break in cases where reflection is missing/broken.
        if (thrownReflectionFailure != null) {
          log.get().log(Level.SEVERE, "SafeAtomicHelper is broken!", thrownReflectionFailure);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSetFloodingTest.java

        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create(
                    "contains",
                    (s, o) -> {
                      boolean unused = s.contains(o);
                    },
                    Math::log)));
      }
    
      /** All the ways to construct an ImmutableSet. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java

          this.executor = checkNotNull(executor);
        }
    
        void execute() {
          try {
            executor.execute(command);
          } catch (RuntimeException e) {
            log.log(
                Level.SEVERE,
                "RuntimeException while executing runnable " + command + " with executor " + executor,
                e);
          }
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 19:37:41 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/TearDownStack.java

          stack.clear();
        }
        for (TearDown tearDown : stackCopy) {
          try {
            tearDown.tearDown();
          } catch (Throwable t) {
            if (suppressThrows) {
              logger.log(Level.INFO, "exception thrown during tearDown", t);
            } else {
              exceptions.add(t);
            }
          }
        }
        if (!suppressThrows && (exceptions.size() > 0)) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/IntMath.java

      };
    
      /**
       * Returns {@code b} to the {@code k}th power. Even if the result overflows, it will be equal to
       * {@code BigInteger.valueOf(b).pow(k).intValue()}. This implementation runs in {@code O(log k)}
       * time.
       *
       * <p>Compare {@link #checkedPow}, which throws an {@link ArithmeticException} upon overflow.
       *
       * @throws IllegalArgumentException if {@code k < 0}
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     *       #element}, and {@link #size} are constant-time.
     *   <li>The enqueuing and dequeuing operations ({@link #offer}, {@link #add}, and all the forms of
     *       {@link #poll} and {@link #remove()}) run in {@code O(log n) time}.
     *   <li>The {@link #remove(Object)} and {@link #contains} operations require linear ({@code O(n)})
     *       time.
     *   <li>If you only access one end of the queue, and don't use a maximum size, this class is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

                  "DelayedShutdownHook-for-" + service,
                  new Runnable() {
                    @Override
                    public void run() {
                      try {
                        // We'd like to log progress and failures that may arise in the
                        // following code, but unfortunately the behavior of logging
                        // is undefined in shutdown hooks.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedSet.java

          copyIfNecessary();
          if (n == elements.length) {
            sortAndDedup();
            /*
             * Sorting operations can only be allowed to occur once every O(n) operations to keep
             * amortized O(n log n) performance.  Therefore, ensure there are at least O(n) *unused*
             * spaces in the builder array.
             */
            int newLength = ImmutableCollection.Builder.expandedCapacity(n, n + 1);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
Back to top