Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for castOrCopyToList (0.23 sec)

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

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static com.google.common.collect.testing.Helpers.castOrCopyToList;
    import static java.util.Collections.reverse;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.testing.DerivedCollectionGenerators.Bound;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static com.google.common.collect.testing.Helpers.castOrCopyToList;
    import static java.util.Collections.reverse;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.testing.DerivedCollectionGenerators.Bound;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 7K bytes
    - Viewed (0)
  3. 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) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  4. 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  5. 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);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  6. 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);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
Back to top