Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,314 for Collections (0.07 sec)

  1. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.collect.Lists;
    import com.google.common.primitives.Chars;
    import java.util.Collections;
    import java.util.List;
    import java.util.Locale;
    import java.util.Random;
    
    /**
     * Benchmarks for the ASCII class.
     *
     * @author Kevin Bourrillion
     */
    public class AsciiBenchmark {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

    import com.google.common.collect.testing.google.MultisetTestSuiteBuilder;
    import com.google.common.collect.testing.google.TestStringMultisetGenerator;
    import java.io.Serializable;
    import java.util.Collections;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.concurrent.atomic.AtomicInteger;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Ordering.java

       * @since 8.0
       */
      public <E extends T> List<E> leastOf(Iterable<E> iterable, int k) {
        if (iterable instanceof Collection) {
          Collection<E> collection = (Collection<E>) iterable;
          if (collection.size() <= 2L * k) {
            // In this case, just dumping the collection to an array and sorting is
            // faster than using the implementation for Iterator, which is
            // specialized for k much smaller than n.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

      public Object[] toArray() {
        /*
         * ObjectArrays.toArrayImpl returns `@Nullable Object[]` rather than `Object[]` but only because
         * it can be used with collections that may contain null. This collection is a collection of
         * non-null elements, so we can treat it as a plain `Object[]`.
         */
        @SuppressWarnings("nullness")
        Object[] result = ObjectArrays.toArrayImpl(this);
        return result;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Bytes.java

       *     to primitives
       * @throws NullPointerException if {@code collection} or any of its elements is null
       * @since 1.0 (parameter was {@code Collection<Byte>} before 12.0)
       */
      public static byte[] toArray(Collection<? extends Number> collection) {
        if (collection instanceof ByteArrayAsList) {
          return ((ByteArrayAsList) collection).toByteArray();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Table.java

       *
       * @return set of column keys
       */
      Set<C> columnKeySet();
    
      /**
       * Returns a collection of all values, which may contain duplicates. Changes to the returned
       * collection will update the underlying table, and vice versa.
       *
       * @return collection of values
       */
      Collection<V> values();
    
      /**
       * Returns a view that associates each row key with the corresponding map from column keys to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java

                mergeModelBase(builder, target, source, true, Collections.emptyMap());
            }
    
            public void mergeBuildBase(BuildBase.Builder builder, BuildBase target, BuildBase source) {
                mergeBuildBase(builder, target, source, true, Collections.emptyMap());
            }
    
            @Override
            protected void mergePluginContainer_Plugins(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbException.java

            // by getMessageByCode
            errorCodeMessagesTmp.put(0, "NT_STATUS_SUCCESS");
    
            errorCodeMessages = Collections.unmodifiableMap(errorCodeMessagesTmp);
            dosErrorCodeStatuses = Collections.unmodifiableMap(dosErrorCodeStatusesTmp);
    
            Map<Integer, String> winErrorCodeMessagesTmp = new HashMap<>();
            for (int i = 0; i < WINERR_CODES.length; i++) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 07:16:55 UTC 2018
    - 5.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

      public void testEntrySetEquals() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k1(), v0()), mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> expected = newHashSet();
        expected.add(mapEntry(k0(), (Collection<V>) newHashSet(v0(), v3())));
        expected.add(mapEntry(k1(), (Collection<V>) newHashSet(v0())));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap().entrySet()).testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/type/DefaultType.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.repository.internal.type;
    
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Map;
    import java.util.Set;
    
    import org.apache.maven.api.JavaPathType;
    import org.apache.maven.api.Language;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top