Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for castOrCopyToList (0.16 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          return vs;
        }
    
        @Override
        public Iterable<V> order(List<V> insertionOrder) {
          List<Entry<K, V>> orderedEntries =
              castOrCopyToList(mapGenerator.order(castOrCopyToList(mapGenerator.getSampleElements(5))));
          sort(
              insertionOrder,
              new Comparator<V>() {
                @Override
                public int compare(V left, V right) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

          }
    
          @Override
          public String toString() {
            return getKey() + "=" + getValue();
          }
        };
      }
    
      static <E extends @Nullable Object> List<E> castOrCopyToList(Iterable<E> iterable) {
        if (iterable instanceof List) {
          return (List<E>) iterable;
        }
        List<E> list = new ArrayList<>();
        for (E e : iterable) {
          list.add(e);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/Helpers.java

          }
    
          @Override
          public String toString() {
            return getKey() + "=" + getValue();
          }
        };
      }
    
      static <E extends @Nullable Object> List<E> castOrCopyToList(Iterable<E> iterable) {
        if (iterable instanceof List) {
          return (List<E>) iterable;
        }
        List<E> list = new ArrayList<>();
        for (E e : iterable) {
          list.add(e);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top