Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 624 for Preconditions (0.2 sec)

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

     *
     * <p>See the Guava User Guide on <a
     * href="https://github.com/google/guava/wiki/PreconditionsExplained">using {@code
     * Preconditions}</a>.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Preconditions {
      private Preconditions() {}
    
      private interface Impossible {}
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Preconditions.java

     *
     * <p>See the Guava User Guide on <a
     * href="https://github.com/google/guava/wiki/PreconditionsExplained">using {@code
     * Preconditions}</a>.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Preconditions {
      private Preconditions() {}
    
      private interface Impossible {}
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        }
      }
    
      public void testCheckPositionIndexes_ok() {
        Preconditions.checkPositionIndexes(0, 0, 0);
        Preconditions.checkPositionIndexes(0, 0, 1);
        Preconditions.checkPositionIndexes(0, 1, 1);
        Preconditions.checkPositionIndexes(1, 1, 1);
      }
    
      public void testCheckPositionIndexes_badSize() {
        try {
          Preconditions.checkPositionIndexes(1, 1, -1);
          fail();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/PreconditionsTest.java

        }
      }
    
      public void testCheckPositionIndexes_ok() {
        Preconditions.checkPositionIndexes(0, 0, 0);
        Preconditions.checkPositionIndexes(0, 0, 1);
        Preconditions.checkPositionIndexes(0, 1, 1);
        Preconditions.checkPositionIndexes(1, 1, 1);
      }
    
      public void testCheckPositionIndexes_badSize() {
        try {
          Preconditions.checkPositionIndexes(1, 1, -1);
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        Preconditions.checkNotNull(task, "task must not be null!");
        Preconditions.checkNotNull(result, "result must not be null!");
        return delegate.submit(task, result);
      }
    
      @Override
      public ListenableFuture<?> submit(Runnable task) {
        Preconditions.checkNotNull(task, "task must not be null!");
        return delegate.submit(task);
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Verify.java

      /**
       * Ensures that {@code expression} is {@code true}, throwing a {@code VerifyException} with no
       * message otherwise.
       *
       * @throws VerifyException if {@code expression} is {@code false}
       * @see Preconditions#checkState Preconditions.checkState()
       */
      public static void verify(boolean expression) {
        if (!expression) {
          throw new VerifyException();
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 18.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        Preconditions.checkNotNull(task, "task must not be null!");
        Preconditions.checkNotNull(result, "result must not be null!");
        return delegate.submit(task, result);
      }
    
      @Override
      public ListenableFuture<?> submit(Runnable task) {
        Preconditions.checkNotNull(task, "task must not be null!");
        return delegate.submit(task);
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

        final Queue<OldExecutionList.RunnableExecutorPair> runnables = Lists.newLinkedList();
        boolean executed = false;
    
        public void add(Runnable runnable, Executor executor) {
          Preconditions.checkNotNull(runnable, "Runnable was null.");
          Preconditions.checkNotNull(executor, "Executor was null.");
    
          boolean executeImmediate = false;
    
          synchronized (runnables) {
            if (!executed) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  9. cmd/object-handlers-common.go

    	"github.com/minio/minio/internal/hash"
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    var etagRegex = regexp.MustCompile("\"*?([^\"]*?)\"*?$")
    
    // Validates the preconditions for CopyObjectPart, returns true if CopyObjectPart
    // operation should not proceed. Preconditions supported are:
    //
    //	x-amz-copy-source-if-modified-since
    //	x-amz-copy-source-if-unmodified-since
    //	x-amz-copy-source-if-match
    //	x-amz-copy-source-if-none-match
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/HashCode.java

     * the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    
    import com.google.common.base.Preconditions;
    import com.google.common.primitives.Ints;
    import com.google.common.primitives.UnsignedInts;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 12.6K bytes
    - Viewed (0)
Back to top