Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 189 for creation (0.18 sec)

  1. android/guava-tests/test/com/google/common/graph/GraphsTest.java

        Network<Integer, String> undirectedGraph = buildUndirectedNetwork();
    
        Network<Integer, String> copy = copyOf(undirectedGraph);
        assertThat(copy).isEqualTo(undirectedGraph);
      }
    
      // Graph creation tests
    
      @Test
      public void createDirected() {
        MutableNetwork<Integer, String> directedGraph = NetworkBuilder.directed().build();
        assertThat(directedGraph.nodes()).isEmpty();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multiset.java

     * both a distinct element and the count of that element.
     *
     * <p>In addition to these required methods, implementations of {@code Multiset} are expected to
     * provide two {@code static} creation methods: {@code create()}, returning an empty multiset, and
     * {@code create(Iterable<? extends E>)}, returning a multiset containing the given initial
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableList.java

      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int dstOff) {
        System.arraycopy(array, 0, dst, dstOff, size);
        return dstOff + size;
      }
    
      // The fake cast to E is safe because the creation methods only allow E's
      @Override
      @SuppressWarnings("unchecked")
      public E get(int index) {
        checkElementIndex(index, size);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                      }
                    })
                .named("TreeMultimap.asMap")
                .withFeatures(
                    MapFeature.SUPPORTS_REMOVE,
                    MapFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionSize.ANY)
                .createTestSuite());
        suite.addTest(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMultimap.java

     *
     * <p><b>Key-grouped iteration.</b> All view collections follow the same iteration order. In all
     * current implementations, the iteration order always keeps multiple entries with the same key
     * together. Any creation method that would customarily respect insertion order (such as {@link
     * #copyOf(Multimap)}) instead preserves key-grouped order by inserting entries for an existing key
     * immediately after the last entry having that key.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java

       * {@link IllegalArgumentException} when presented with duplicate keys instead of discarding all
       * but one.
       */
      REJECTS_DUPLICATES_AT_CREATION,
    
      GENERAL_PURPOSE(SUPPORTS_PUT, SUPPORTS_REMOVE);
    
      private final Set<Feature<? super Map>> implied;
    
      MapFeature(Feature<? super Map>... implied) {
        this.implied = Helpers.copyToSet(implied);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMultimap.java

     *
     * <p><b>Key-grouped iteration.</b> All view collections follow the same iteration order. In all
     * current implementations, the iteration order always keeps multiple entries with the same key
     * together. Any creation method that would customarily respect insertion order (such as {@link
     * #copyOf(Multimap)}) instead preserves key-grouped order by inserting entries for an existing key
     * immediately after the last entry having that key.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Preconditions.java

     * them, even though they usually won't be needed. If you have such arguments, use the conventional
     * if/throw idiom instead.
     *
     * <p>Depending on your message arguments, memory may be allocated for boxing and varargs array
     * creation. However, the methods of this class have a large number of overloads that prevent such
     * allocations in many common cases.
     *
     * <p>The message string is not formatted unless the exception will be thrown, so the cost of the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/CacheBuilder.java

        return MoreObjects.firstNonNull(valueStrength, Strength.STRONG);
      }
    
      /**
       * Specifies that each entry should be automatically removed from the cache once a fixed duration
       * has elapsed after the entry's creation, or the most recent replacement of its value.
       *
       * <p>When {@code duration} is zero, this method hands off to {@link #maximumSize(long)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                      }
                    })
                .named("ImmutableMultiset.elementSet.asList")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
        return suite;
      }
    
      public void testCreation_noArgs() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 21K bytes
    - Viewed (0)
Back to top