Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 502 for iterable (0.06 sec)

  1. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class ComparatorsTest extends TestCase {
      public void testLexicographical() {
        Comparator<String> comparator = Ordering.natural();
        Comparator<Iterable<String>> lexy = Comparators.lexicographical(comparator);
    
        ImmutableList<String> empty = ImmutableList.of();
        ImmutableList<String> a = ImmutableList.of("a");
        ImmutableList<String> aa = ImmutableList.of("a", "a");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_nullCollectionReference() {
        assertThrows(NullPointerException.class, () -> getMap().putAll(null));
      }
    
      private void putAll(Iterable<Entry<K, V>> entries) {
        Map<K, V> map = new LinkedHashMap<>();
        for (Entry<K, V> entry : entries) {
          map.put(entry.getKey(), entry.getValue());
        }
        getMap().putAll(map);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

      }
    
      // TODO(cpovirk): should we reject null items, since the tests already check null automatically?
      @CanIgnoreReturnValue
      public RelationshipTester<T> addRelatedGroup(Iterable<? extends T> group) {
        groups.add(ImmutableList.copyOf(group));
        return this;
      }
    
      public void test() {
        for (int groupNumber = 0; groupNumber < groups.size(); groupNumber++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

     *
     * <pre>{@code
     * class MySubtypeTests extends SubtypeTester {
     *   @TestSubtype(suppressGetSubtype = true, suppressGetSupertype = true)
     *   public <T> Iterable<? extends T> listIsSubtypeOfIterable(List<T> list) {
     *     return isSubtype(list);
     *   }
     *
     *   @TestSubtype
     *   public List<String> intListIsNotSubtypeOfStringList(List<Integer> intList) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/SetMultimap.java

       * interface.
       *
       * <p>Any duplicates in {@code values} will be stored in the multimap once.
       */
      @CanIgnoreReturnValue
      @Override
      Set<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values);
    
      /**
       * {@inheritDoc}
       *
       * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        runIteratorTest(UNMODIFIABLE, IteratorTester.KnownOrder.UNKNOWN_ORDER, getSampleElements());
      }
    
      private void runIteratorTest(
          Set<IteratorFeature> features, IteratorTester.KnownOrder knownOrder, Iterable<E> elements) {
        new IteratorTester<E>(
            Platform.collectionIteratorTesterNumIterations(), features, elements, knownOrder) {
          @Override
          protected Iterator<E> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/SetMultimap.java

       * interface.
       *
       * <p>Any duplicates in {@code values} will be stored in the multimap once.
       */
      @CanIgnoreReturnValue
      @Override
      Set<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values);
    
      /**
       * {@inheritDoc}
       *
       * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Files.java

       * @since 11.0
       */
      public static String simplifyPath(String pathname) {
        checkNotNull(pathname);
        if (pathname.length() == 0) {
          return ".";
        }
    
        // split the path apart
        Iterable<String> components = Splitter.on('/').omitEmptyStrings().split(pathname);
        List<String> path = new ArrayList<>();
    
        // resolve ., .., and //
        for (String component : components) {
          switch (component) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

            }
          }
    
          Control control = new Control();
          Hasher controlSink = control.newHasher(1024);
    
          Iterable<Hasher> sinksAndControl =
              Iterables.concat(sinks, Collections.singleton(controlSink));
          for (int insertion = 0; insertion < totalInsertions; insertion++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.io;
    
    import static org.codelibs.core.collection.EnumerationIterator.iterable;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.File;
    import java.io.FilterInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top