Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 238 for guarantees (0.04 sec)

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

        assertThat(ImmutableLongArray.of(0, 1, 3, 6, 10, 15, 21).asList())
            .containsExactly(0L, 1L, 3L, 6L, 10L, 15L, 21L)
            .inOrder();
      }
    
      public void testCopyOf_array_empty() {
        /*
         * We don't guarantee the same-as property, so we aren't obligated to test it. However, it's
         * useful in testing - when two things are the same then one can't have bugs the other doesn't.
         */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AbstractService.java

       * methods like {@link #state}, {@link #failureCause} and notably {@link #toString} can be run
       * without grabbing the lock.
       *
       * <p>To update this field correctly the lock must be held to guarantee that the state is
       * consistent.
       */
      private volatile StateSnapshot snapshot = new StateSnapshot(NEW);
    
      /** Constructor for use by subclasses. */
      protected AbstractService() {}
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TopKSelector.java

      private void swap(int i, int j) {
        T tmp = buffer[i];
        buffer[i] = buffer[j];
        buffer[j] = tmp;
      }
    
      /*
       * While the current implementation returns `this`, that's not something we mean to guarantee.
       * Anyway, the purpose of this method is to implement a BinaryOperator combiner for a Collector,
       * so its return value will get used naturally.
       */
      @SuppressWarnings("CanIgnoreReturnValueSuggester")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMaker.java

       * instance, so it can be invoked again to create multiple independent maps.
       *
       * <p>The bulk operations {@code putAll}, {@code equals}, and {@code clear} are not guaranteed to
       * be performed atomically on the returned map. Additionally, {@code size} and {@code
       * containsValue} are implemented as bulk read operations, and thus may fail to observe concurrent
       * writes.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

              releaseShared(finalState);
            } else if (getState() == COMPLETING) {
              // If some other thread is currently completing the future, block until
              // they are done so we can guarantee completion.
              acquireShared(-1);
            }
            return doCompletion;
          }
        }
    
        static CancellationException cancellationExceptionWithCause(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return ImmutableSortedSet.orderedBy(STRING_REVERSED).add(elements).build();
        }
    
        /*
         * While the current implementation returns `this`, that's not something we mean to guarantee.
         * Callers of TestContainerGenerator.order need to be prepared for implementations to return a new
         * collection.
         */
        @SuppressWarnings("CanIgnoreReturnValueSuggester")
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

                    nonExistentParent.delete();
                }
            }
        }
    
        public void test_generate_invalid_parent_directory() throws Exception {
            // Create a path that's guaranteed to be invalid
            final File invalidParent = System.getProperty("os.name", "linux").toLowerCase().startsWith("windows")
                    ? new File("Q:\\invalid\\path\\that\\does\\not\\exist")
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/escape/UnicodeEscaper.java

      /**
       * Returns the escaped form of the given Unicode code point, or {@code null} if this code point
       * does not need to be escaped. When called as part of an escaping operation, the given code point
       * is guaranteed to be in the range {@code 0 <= cp <= Character#MAX_CODE_POINT}.
       *
       * <p>If an empty array is returned, this effectively strips the input character from the
       * resulting text.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

     * not consistent with equals, some of the standard implementations may violate the {@code Map}
     * contract.
     *
     * <p>The {@code standard} methods and the collection views they return are not guaranteed to be
     * thread-safe, even when all of the methods that they depend on are thread-safe.
     *
     * @author Louis Wasserman
     * @since 12.0
     */
    @GwtIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ForwardingNavigableMap.java

     * not consistent with equals, some of the standard implementations may violate the {@code Map}
     * contract.
     *
     * <p>The {@code standard} methods and the collection views they return are not guaranteed to be
     * thread-safe, even when all of the methods that they depend on are thread-safe.
     *
     * @author Louis Wasserman
     * @since 12.0
     */
    @GwtIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top