Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,007 for boolean (0.14 sec)

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

        testRotate(new boolean[] {true}, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 2, new boolean[] {true});
    
        testRotate(new boolean[] {true, false}, -3, new boolean[] {false, true});
        testRotate(new boolean[] {true, false}, -1, new boolean[] {false, true});
        testRotate(new boolean[] {true, false}, -2, new boolean[] {true, false});
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

        testRotate(new boolean[] {true}, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 2, new boolean[] {true});
    
        testRotate(new boolean[] {true, false}, -3, new boolean[] {false, true});
        testRotate(new boolean[] {true, false}, -1, new boolean[] {false, true});
        testRotate(new boolean[] {true, false}, -2, new boolean[] {true, false});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ComparisonChain.java

            }
    
            @Override
            public ComparisonChain compareTrueFirst(boolean left, boolean right) {
              return classify(Booleans.compare(right, left)); // reversed
            }
    
            @Override
            public ComparisonChain compareFalseFirst(boolean left, boolean right) {
              return classify(Booleans.compare(left, right));
            }
    
            ComparisonChain classify(int result) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

          }
        },
        MESSAGE_DIGEST_IS_EQUAL {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            return MessageDigest.isEqual(a, b);
          }
        },
        ARRAYS_EQUALS {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            return Arrays.equals(a, b);
          }
        };
    
        abstract boolean doEquals(byte[] a, byte[] b);
      }
    
      private byte[] testBytesA;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

          }
        },
        MESSAGE_DIGEST_IS_EQUAL {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            return MessageDigest.isEqual(a, b);
          }
        },
        ARRAYS_EQUALS {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            return Arrays.equals(a, b);
          }
        };
    
        abstract boolean doEquals(byte[] a, byte[] b);
      }
    
      private byte[] testBytesA;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

        }
    
        @Override
        public boolean contains(Object object) {
          return standardContains(object);
        }
    
        @Override
        public boolean containsAll(Collection<?> collection) {
          return standardContainsAll(collection);
        }
    
        @Override
        public boolean remove(Object object) {
          return standardRemove(object);
        }
    
        @Override
        public boolean removeAll(Collection<?> collection) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Preconditions.java

      /**
       * Ensures the truth of an expression involving one or more parameters to the calling method.
       *
       * @param expression a boolean expression
       * @throws IllegalArgumentException if {@code expression} is false
       */
      public static void checkArgument(boolean expression) {
        if (!expression) {
          throw new IllegalArgumentException();
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

      public @Nullable E pollLast() {
        return delegate.pollLast();
      }
    
      @Override
      public boolean remove(Object object) {
        return delegate.remove(checkValid(object));
      }
    
      @Override
      public boolean removeAll(Collection<?> c) {
        return delegate.removeAll(c);
      }
    
      @Override
      public boolean retainAll(Collection<?> c) {
        return delegate.retainAll(c);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

         */
        assertEquals(RESULT, getUninterruptibly(future, -1, SECONDS));
      }
    
      private static FutureTask<Boolean> untimedInterruptReporter(
          final Future<?> future, final boolean allowInterruption) {
        return new FutureTask<>(
            new Callable<Boolean>() {
              @Override
              public Boolean call() throws Exception {
                Object actual;
                if (allowInterruption) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/ForwardingCacheTest.java

        forward =
            new ForwardingCache<String, Boolean>() {
              @Override
              protected Cache<String, Boolean> delegate() {
                return mock;
              }
            };
      }
    
      public void testGetIfPresent() throws ExecutionException {
        when(mock.getIfPresent("key")).thenReturn(Boolean.TRUE);
        assertSame(Boolean.TRUE, forward.getIfPresent("key"));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top