Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 331 for init (0.16 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      }
    
      /** get and set for out of bound indices throw IndexOutOfBoundsException */
      public void testIndexing() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int index : new int[] {-1, SIZE}) {
          assertThrows(IndexOutOfBoundsException.class, () -> aa.get(index));
          assertThrows(IndexOutOfBoundsException.class, () -> aa.set(index, 1.0));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          } finally {
            lockStateChanged(this);
          }
        }
    
        @Override
        public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException {
          aboutToAcquire(this);
          try {
            return super.tryLock(timeout, unit);
          } finally {
            lockStateChanged(this);
          }
        }
    
        @Override
        public void unlock() {
          try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/Utf8Test.java

      private static byte[] toByteArray(int... bytes) {
        byte[] realBytes = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
          realBytes[i] = (byte) bytes[i];
        }
        return realBytes;
      }
    
      private static void assertWellFormed(int... bytes) {
        assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
      }
    
      private static void assertNotWellFormed(int... bytes) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        verifyTableSize(17, 15, 32);
      }
    
      @GwtIncompatible // RegularImmutableSet.table not in emulation
      private void verifyTableSize(int inputSize, int setSize, int tableSize) {
        Builder<Integer> builder = ImmutableSet.builder();
        for (int i = 0; i < inputSize; i++) {
          builder.add(i % setSize);
        }
        ImmutableSet<Integer> set = builder.build();
        assertTrue(set instanceof RegularImmutableSet);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/JoinerTest.java

        }
      }
    
      private static class DontStringMeBro implements CharSequence {
        @Override
        public int length() {
          return 3;
        }
    
        @Override
        public char charAt(int index) {
          return "foo".charAt(index);
        }
    
        @Override
        public CharSequence subSequence(int start, int end) {
          return "foo".subSequence(start, end);
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/RangeTest.java

    /**
     * Unit test for {@link Range}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class RangeTest extends TestCase {
      public void testOpen() {
        Range<Integer> range = Range.open(4, 8);
        checkContains(range);
        assertTrue(range.hasLowerBound());
        assertEquals(4, (int) range.lowerEndpoint());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/BooleansTest.java

      }
    
      private static void testRotate(boolean[] input, int distance, boolean[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        Booleans.rotate(input, distance);
        assertThat(input).isEqualTo(expectedOutput);
      }
    
      private static void testRotate(
          boolean[] input, int distance, int fromIndex, int toIndex, boolean[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
    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)
  8. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

      }
    
      private static void testRotate(boolean[] input, int distance, boolean[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        Booleans.rotate(input, distance);
        assertThat(input).isEqualTo(expectedOutput);
      }
    
      private static void testRotate(
          boolean[] input, int distance, int fromIndex, int toIndex, boolean[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
    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)
  9. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //             System.setSecurityManager(new SecurityManager());
      //         }
      //         int iters = (args.length == 0) ? 1 : Integer.parseInt(args[0]);
    
      //         Test s = suite();
      //         for (int i = 0; i < iters; ++i) {
      //             junit.textui.TestRunner.run(s);
      //             System.gc();
      //             System.runFinalization();
      //         }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

      }
    
      private static void testRotate(short[] input, int distance, short[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        Shorts.rotate(input, distance);
        assertThat(input).isEqualTo(expectedOutput);
      }
    
      private static void testRotate(
          short[] input, int distance, int fromIndex, int toIndex, short[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top