Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for copyToList (0.12 sec)

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

        sortedMultiset.tailMultiset(b.getElement(), CLOSED).clear();
        assertEquals(expected, copyToList(sortedMultiset.entrySet()));
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testClearTailClosedEntrySet() {
        List<Entry<E>> expected =
            copyToList(sortedMultiset.headMultiset(b.getElement(), OPEN).entrySet());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        sortedMultiset.tailMultiset(b.getElement(), CLOSED).clear();
        assertEquals(expected, copyToList(sortedMultiset.entrySet()));
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testClearTailClosedEntrySet() {
        List<Entry<E>> expected =
            copyToList(sortedMultiset.headMultiset(b.getElement(), OPEN).entrySet());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

      }
    
      // Clone of Lists.newArrayList
      public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) {
        List<E> list = new ArrayList<>();
        addAll(list, elements);
        return list;
      }
    
      public static <E extends @Nullable Object> List<E> copyToList(E[] elements) {
        return copyToList(asList(elements));
      }
    
      // Clone of Sets.newLinkedHashSet
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static java.util.Collections.emptySet;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Multiset.Entry;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static com.google.common.collect.testing.Helpers.getMethod;
    import static com.google.common.collect.testing.features.CollectionFeature.SERIALIZABLE_INCLUDING_VIEWS;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static com.google.common.collect.testing.Helpers.getMethod;
    import static com.google.common.collect.testing.features.CollectionFeature.SERIALIZABLE_INCLUDING_VIEWS;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/Helpers.java

      }
    
      // Clone of Lists.newArrayList
      public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) {
        List<E> list = new ArrayList<>();
        addAll(list, elements);
        return list;
      }
    
      public static <E extends @Nullable Object> List<E> copyToList(E[] elements) {
        return copyToList(asList(elements));
      }
    
      // Clone of Sets.newLinkedHashSet
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.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.copyToList;
    import static com.google.common.collect.testing.Helpers.copyToSet;
    import static java.lang.System.arraycopy;
    import static java.util.Arrays.asList;
    import static java.util.Collections.frequency;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static java.util.Collections.emptySet;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Multiset.Entry;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

     * License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER;
    import static com.google.common.collect.testing.features.CollectionFeature.RESTRICTS_ELEMENTS;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top