Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for list (0.36 sec)

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

        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 1)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
    
        list.add("pants");
        assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
        assertEquals(ImmutableList.of("cool"), newArrayList(Iterators.limit(list.iterator(), 1)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableList.java

        private final ImmutableList<E> list;
    
        Itr(ImmutableList<E> list, int index) {
          super(list.size(), index);
          this.list = list;
        }
    
        @Override
        protected E get(int index) {
          return list.get(index);
        }
      }
    
      @Override
      public int indexOf(@CheckForNull Object object) {
        return (object == null) ? -1 : Lists.indexOfImpl(this, object);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MoreCollectors.java

        }
    
        void add(Object o) {
          checkNotNull(o);
          if (element == null) {
            this.element = o;
          } else if (extras.isEmpty()) {
            // Replace immutable empty list with mutable list.
            extras = new ArrayList<>(MAX_EXTRAS);
            extras.add(o);
          } else if (extras.size() < MAX_EXTRAS) {
            extras.add(o);
          } else {
            throw multiples(true);
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

        }
    
        @Override
        protected Collection<List<E>> delegate() {
          return delegate;
        }
    
        @Override
        public boolean contains(@CheckForNull Object object) {
          if (!(object instanceof List)) {
            return false;
          }
          List<?> list = (List<?>) object;
          if (list.size() != axes.size()) {
            return false;
          }
          int i = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. istioctl/pkg/waypoint/waypoint.go

    	waypointListCmd := &cobra.Command{
    		Use:   "list",
    		Short: "List managed waypoint configurations",
    		Long:  "List managed waypoint configurations in the cluster",
    		Example: `  # List all waypoints in a specific namespace
      istioctl x waypoint list --namespace default
    
      # List all waypoints in the cluster
      istioctl x waypoint list -A`,
    		RunE: func(cmd *cobra.Command, args []string) error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  6. cni/pkg/ipset/nldeps_linux.go

    func (m *realDeps) clearEntriesWithComment(name, comment string) error {
    	res, err := netlink.IpsetList(name)
    	if err != nil {
    		return fmt.Errorf("failed to list ipset %s: %w", name, err)
    	}
    	for _, entry := range res.Entries {
    		if entry.Comment == comment {
    			err := netlink.IpsetDel(name, &entry)
    			if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

          } else if (collection instanceof List) {
            return Collections.unmodifiableList((List<E>) collection);
          } else {
            return Collections.unmodifiableCollection(collection);
          }
        }
    
        @Override
        Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
          if (collection instanceof List) {
            return wrapList(key, (List<V>) collection, null);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

          Collection<? extends V> values = entry.getValue();
          ImmutableList<V> list =
              (valueComparator == null)
                  ? ImmutableList.copyOf(values)
                  : ImmutableList.sortedCopyOf(valueComparator, values);
          if (!list.isEmpty()) {
            builder.put(key, list);
            size += list.size();
          }
        }
    
        return new ImmutableListMultimap<>(builder.buildOrThrow(), size);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

              array[i] = null; // for GWT
            }
    
            List<@Nullable T> list = Collections.unmodifiableList(Arrays.asList(array));
            // TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker.
            if (pad || count == size) {
              return list;
            } else {
              return list.subList(0, count);
            }
          }
        };
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  10. cni/pkg/ipset/ipset.go

    // superset of type `list:set` - we can then query the superset directly in iptables (with the same rule),
    // and iptables will be smart enough to pick the correct underlying set (v4 or v6, based on context),
    // reducing the # of rules we need.
    //
    // BUT netlink lib doesn't support adding things to `list:set` types yet, and current tagged release
    // doesn't support creating `list:set` types yet (is in main branch tho).
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top