Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 373 for Lists (0.04 sec)

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

        assertEquals(89, Lists.computeArrayListCapacity(77));
        assertEquals(22000005, Lists.computeArrayListCapacity(20000000));
        assertEquals(Integer.MAX_VALUE, Lists.computeArrayListCapacity(Integer.MAX_VALUE - 1000));
      }
    
      public void testNewArrayListFromCollection() {
        ArrayList<Integer> list = Lists.newArrayList(SOME_COLLECTION);
        assertEquals(SOME_COLLECTION, list);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals(89, Lists.computeArrayListCapacity(77));
        assertEquals(22000005, Lists.computeArrayListCapacity(20000000));
        assertEquals(Integer.MAX_VALUE, Lists.computeArrayListCapacity(Integer.MAX_VALUE - 1000));
      }
    
      public void testNewArrayListFromCollection() {
        ArrayList<Integer> list = Lists.newArrayList(SOME_COLLECTION);
        assertEquals(SOME_COLLECTION, list);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> filtered = Iterators.filter(unfiltered, Predicates.alwaysFalse());
        List<String> expected = Collections.emptyList();
        List<String> actual = Lists.newArrayList(filtered);
        assertEquals(expected, actual);
      }
    
      public void testFilterMatchAll() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go

    				},
    			}, &multiKeyMapListSchema),
    			equal: false,
    		},
    		{
    			name:  "set lists are equal regardless of order",
    			lhs:   UnstructuredToVal([]interface{}{"a", "b"}, &setListSchema),
    			rhs:   UnstructuredToVal([]interface{}{"b", "a"}, &setListSchema),
    			equal: true,
    		},
    		{
    			name:  "set lists are not equal if contents differ",
    			lhs:   UnstructuredToVal([]interface{}{"a", "b"}, &setListSchema),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

    package com.google.common.collect.testing;
    
    import static com.google.common.collect.Lists.newArrayList;
    import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE;
    import static java.util.Collections.emptyList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Lists;
    import java.util.Iterator;
    import java.util.List;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/MessageBuilderHelper.java

            return pathTo(edge, true);
        }
    
        static Collection<String> pathTo(EdgeState edge, boolean includeLast) {
            List<List<EdgeState>> acc = Lists.newArrayListWithExpectedSize(1);
            pathTo(edge, new ArrayList<>(), acc, new HashSet<>());
            List<String> result = Lists.newArrayListWithCapacity(acc.size());
            for (List<EdgeState> path : acc) {
                EdgeState target = Iterators.getLast(path.iterator());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

    package com.google.common.collect.testing;
    
    import static com.google.common.collect.Lists.newArrayList;
    import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE;
    import static java.util.Collections.emptyList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Lists;
    import java.util.Iterator;
    import java.util.List;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        assertEquals(Lists.newArrayList("a", "b"), list);
      }
    
      public void testCreation_threeElements() {
        List<String> list = ImmutableList.of("a", "b", "c");
        assertEquals(Lists.newArrayList("a", "b", "c"), list);
      }
    
      public void testCreation_fourElements() {
        List<String> list = ImmutableList.of("a", "b", "c", "d");
        assertEquals(Lists.newArrayList("a", "b", "c", "d"), list);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        return this;
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        return Lists.equalsImpl(this, obj);
      }
    
      @Override
      public int hashCode() {
        return Lists.hashCodeImpl(this);
      }
    
      public ImmutableList<E> reverse() {
        List<E> list = Lists.newArrayList(this);
        Collections.reverse(list);
        return unsafeDelegateList(list);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/ListSerializer.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.internal.serialize;
    
    import com.google.common.collect.Lists;
    
    import java.util.Collections;
    import java.util.List;
    
    public class ListSerializer<T> extends AbstractCollectionSerializer<T, List<T>> implements Serializer<List<T>> {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top