Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 163 for init (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        }
    
        private Builder(Comparator<? super K> comparator, int initialCapacity) {
          this.comparator = checkNotNull(comparator);
          this.keys = new @Nullable Object[initialCapacity];
          this.values = new @Nullable Object[initialCapacity];
        }
    
        private void ensureCapacity(int minCapacity) {
          if (minCapacity > keys.length) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return pickInstance(
            ImmutableList.of(
                int.class, long.class, void.class, Object.class, Object[].class, Iterable.class),
            Object.class);
      }
    
      @Generates
      Object generateObject() {
        return generateString();
      }
    
      @Generates
      Number generateNumber() {
        return generateInt();
      }
    
      @Generates
      int generateInt() {
        return freshness.get();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

        int keyCount = stream.readInt();
        if (keyCount < 0) {
          throw new InvalidObjectException("Invalid key count " + keyCount);
        }
        ImmutableMap.Builder<Object, ImmutableSet<Object>> builder = ImmutableMap.builder();
        int tmpSize = 0;
    
        for (int i = 0; i < keyCount; i++) {
          Object key = requireNonNull(stream.readObject());
          int valueCount = stream.readInt();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

          if (AnnotatedElement.class.isAssignableFrom(TypeVariable.class)) {
            if (new TypeCapture<Entry<String, int[][]>>() {}.capture()
                .toString()
                .contains("java.util.Map.java.util.Map")) {
              CURRENT = JAVA8;
            } else {
              CURRENT = JAVA9;
            }
          } else if (new TypeCapture<int[]>() {}.capture() instanceof Class) {
            CURRENT = JAVA7;
          } else {
            CURRENT = JAVA6;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ForwardingMapEntry.java

        return delegate().setValue(value);
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        return delegate().equals(object);
      }
    
      @Override
      public int hashCode() {
        return delegate().hashCode();
      }
    
      /**
       * A sensible definition of {@link #equals(Object)} in terms of {@link #getKey()} and {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Mar 19 19:28:11 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

        }
    
        abstract void forEachRemaining(Consumer<? super E> action);
    
        abstract boolean tryAdvance(Consumer<? super E> action);
    
        abstract @Nullable GeneralSpliterator<E> trySplit();
    
        final int characteristics() {
          return spliterator.characteristics();
        }
    
        final long estimateSize() {
          return spliterator.estimateSize();
        }
    
        final Comparator<? super E> getComparator() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       */
      static <E> ImmutableSortedSet<E> construct(
          Comparator<? super E> comparator, int n, E... contents) {
        if (n == 0) {
          return emptySet(comparator);
        }
        checkElementsNotNull(contents, n);
        Arrays.sort(contents, 0, n, comparator);
        int uniques = 1;
        for (int i = 1; i < n; i++) {
          E cur = contents[i];
          E prev = contents[uniques - 1];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
Back to top