Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 8,503 for copyOf (0.08 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

      }
    
      static <T> T[] newArray(T[] reference, int length) {
        T[] empty = reference.length == 0 ? reference : Arrays.copyOf(reference, 0);
        return Arrays.copyOf(empty, length);
      }
    
      /** Equivalent to Arrays.copyOfRange(source, from, to, arrayOfType.getClass()). */
      static <T> T[] copy(Object[] source, int from, int to, T[] arrayOfType) {
        T[] result = newArray(arrayOfType, to - from);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Collections2.java

       * element in the underlying collection and determine which elements satisfy the filter. When a
       * live view is <i>not</i> needed, it may be faster to copy {@code Iterables.filter(unfiltered,
       * predicate)} and use the copy.
       *
       * <p><b>Warning:</b> {@code predicate} must be <i>consistent with equals</i>, as documented at
       * {@link Predicate#apply}. Do not provide a predicate such as {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperty.java

            this.containingType = containingType;
            this.propertyName = propertyName;
            this.methodName = methodName;
            this.methodDescriptor = methodDescriptor;
            this.replacedAccessors = ImmutableList.copyOf(replacedAccessors);
        }
    
        public String getContainingType() {
            return containingType;
        }
    
        public String getPropertyName() {
            return propertyName;
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Aug 13 19:17:41 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                    final Object[] values = Arrays.copyOf(oldValues, oldValues.length + newValues.length);
                    for (int i = 0; i < newValues.length; i++) {
                        values[values.length - 1 + i] = newValues[i];
                    }
                    dataMap.put(key, values);
                } else {
                    final Object[] values = Arrays.copyOf(oldValues, oldValues.length + 1);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(keyFunction);
        checkNotNull(valueFunction);
        checkNotNull(mergeFunction);
        return collectingAndThen(
            toMap(keyFunction, valueFunction, mergeFunction, LinkedHashMap::new), ImmutableMap::copyOf);
      }
    
      static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableSortedMap<K, V>> toImmutableSortedMap(
              Comparator<? super K> comparator,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/ingest/IngestFactory.java

            if (logger.isDebugEnabled()) {
                logger.debug("Loaded {}", ingester.getClass().getSimpleName());
            }
            final Ingester[] newIngesters = Arrays.copyOf(ingesters, ingesters.length + 1);
            newIngesters[ingesters.length] = ingester;
            Arrays.sort(newIngesters, (o1, o2) -> o1.priority - o2.priority);
            ingesters = newIngesters;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSetMultimapAsMapImplementsMapTest.java

      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = HashMultimap.create();
        populate(delegate);
        return ImmutableSetMultimap.copyOf(delegate).asMap();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      public void validateNetworkState() {
        validateNetwork(network);
      }
    
      static <N, E> void validateNetwork(Network<N, E> network) {
        assertStronglyEquivalent(network, Graphs.copyOf(network));
        assertStronglyEquivalent(network, ImmutableNetwork.copyOf(network));
    
        String networkString = network.toString();
        assertThat(networkString).contains("isDirected: " + network.isDirected());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

       * the current capacity.
       */
      void resizeEntries(int newCapacity) {
        this.keys = Arrays.copyOf(keys, newCapacity);
        this.values = Arrays.copyOf(values, newCapacity);
        long[] entries = this.entries;
        int oldCapacity = entries.length;
        entries = Arrays.copyOf(entries, newCapacity);
        if (newCapacity > oldCapacity) {
          Arrays.fill(entries, oldCapacity, newCapacity, UNSET);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMultimap.java

       *
       * @throws NullPointerException if any key, value, or entry is null
       * @since 19.0
       */
      public static <K, V> ImmutableMultimap<K, V> copyOf(
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        return ImmutableListMultimap.copyOf(entries);
      }
    
      final transient ImmutableMap<K, ? extends ImmutableCollection<V>> map;
      final transient int size;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top