Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 512 for int (0.14 sec)

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

            double num = RANDOM.nextInt(10);
            for (int i = 0; i < num; i++) {
              list.add((double) counter.getAndIncrement());
            }
            builder.addAll(iterable(list));
          }
        },
        ADD_IIA {
          @Override
          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            double[] array = new double[RANDOM.nextInt(10)];
            for (int i = 0; i < array.length; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

      private static final ImmutableList<Range<Integer>> QUERY_RANGES;
    
      private static final int MIN_BOUND = -1;
      private static final int MAX_BOUND = 1;
    
      static {
        ImmutableList.Builder<Range<Integer>> queryBuilder = ImmutableList.builder();
    
        queryBuilder.add(Range.<Integer>all());
    
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType boundType : BoundType.values()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  4. 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)
  5. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                      }
    
                      @Override
                      public String[] createKeyArray(int length) {
                        return new String[length];
                      }
    
                      @Override
                      public Integer[] createValueArray(int length) {
                        return new Integer[length];
                      }
                    })
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Integer[] webSafeColorArray = webSafeColors.toArray(new Integer[webSafeColors.size()]);
        assertEquals(0x000000, (int) webSafeColorArray[0]);
        assertEquals(0x000033, (int) webSafeColorArray[1]);
        assertEquals(0x000066, (int) webSafeColorArray[2]);
        assertEquals(0x003300, (int) webSafeColorArray[6]);
        assertEquals(0x330000, (int) webSafeColorArray[36]);
        ImmutableSet<Integer> addedColor = webSafeColorsBuilder.add(LAST_COLOR_ADDED).build();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Integer[] webSafeColorArray = webSafeColors.toArray(new Integer[webSafeColors.size()]);
        assertEquals(0x000000, (int) webSafeColorArray[0]);
        assertEquals(0x000033, (int) webSafeColorArray[1]);
        assertEquals(0x000066, (int) webSafeColorArray[2]);
        assertEquals(0x003300, (int) webSafeColorArray[6]);
        assertEquals(0x330000, (int) webSafeColorArray[36]);
        ImmutableSet<Integer> addedColor = webSafeColorsBuilder.add(LAST_COLOR_ADDED).build();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

        return new RegularImmutableMap<>(entries);
      }
    
      public static <K, V> Builder<K, V> builder() {
        return new Builder<K, V>();
      }
    
      public static <K, V> Builder<K, V> builderWithExpectedSize(int expectedSize) {
        return new Builder<K, V>(expectedSize);
      }
    
      static <K, V> Entry<K, V> entryOf(K key, V value) {
        checkEntryNotNull(key, value);
        return Maps.immutableEntry(key, value);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterables.java

        // for a list to reject setting an element, such as when the list does not permit
        // duplicate elements. For both of those cases,  we need to fall back to a slower
        // implementation.
        int from = 0;
        int to = 0;
    
        for (; from < list.size(); from++) {
          T element = list.get(from);
          if (!predicate.apply(element)) {
            if (from > to) {
              try {
                list.set(to, element);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                            }
    
                            @Override
                            public int hashCode() {
                              return next.hashCode();
                            }
                          };
                        }
                      };
                    }
    
                    @Override
                    public int size() {
                      return map.size();
                    }
    
                    @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
Back to top