Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,806 for iterates (0.14 sec)

  1. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/collect/PersistentListTest.groovy

            where:
            elements << [
                [],
                ["a"],
                ["a", "b", "c"],
                ["a", "b", "c", "d"]
            ]
        }
    
        def "iterator iterates the elements #elements"() {
            expect:
            ImmutableList.copyOf(listOf(elements)) == elements
    
            where:
            elements << [
                [],
                ["a"],
                ["a", "b", "c"],
                ["a", "b", "c", "d"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 09:24:00 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/builder_flags_fake.go

    limitations under the License.
    */
    
    package genericclioptions
    
    import (
    	"k8s.io/cli-runtime/pkg/resource"
    )
    
    // NewSimpleFakeResourceFinder builds a super simple ResourceFinder that just iterates over the objects you provided
    func NewSimpleFakeResourceFinder(infos ...*resource.Info) ResourceFinder {
    	return &fakeResourceFinder{
    		Infos: infos,
    	}
    }
    
    type fakeResourceFinder struct {
    	Infos []*resource.Info
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/collections/ElementSource.java

    import java.util.Collection;
    import java.util.Iterator;
    
    public interface ElementSource<T> extends Iterable<T>, WithEstimatedSize, PendingSource<T>, WithMutationGuard {
        /**
         * Iterates over and realizes each of the elements of this source.
         */
        @Override
        Iterator<T> iterator();
    
        /**
         * Iterates over only the realized elements (without flushing any pending elements)
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 02 15:12:15 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/runtime/waiting_pods_map.go

    }
    
    // get a WaitingPod from the map.
    func (m *waitingPodsMap) get(uid types.UID) *waitingPod {
    	m.mu.RLock()
    	defer m.mu.RUnlock()
    	return m.pods[uid]
    }
    
    // iterate acquires a read lock and iterates over the WaitingPods map.
    func (m *waitingPodsMap) iterate(callback func(framework.WaitingPod)) {
    	m.mu.RLock()
    	defer m.mu.RUnlock()
    	for _, v := range m.pods {
    		callback(v)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ConsumingQueueIterator.java

    import java.util.Queue;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An Iterator implementation which draws elements from a queue, removing them from the queue as it
     * iterates. This class is not thread safe.
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class ConsumingQueueIterator<T extends @Nullable Object> extends AbstractIterator<T> {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jan 21 14:48:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ConsumingQueueIterator.java

    import java.util.Queue;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An Iterator implementation which draws elements from a queue, removing them from the queue as it
     * iterates. This class is not thread safe.
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class ConsumingQueueIterator<T extends @Nullable Object> extends AbstractIterator<T> {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jan 21 14:48:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/util/workloadinstances/index.go

    	// 2) workload instances have the same IP but different networks
    	GetByIP(string) []*model.WorkloadInstance
    	// Empty returns whether the index is empty.
    	Empty() bool
    	// ForEach iterates over all workload instances in the index.
    	ForEach(func(*model.WorkloadInstance))
    }
    
    // indexKey returns index key for a given workload instance.
    func indexKey(wi *model.WorkloadInstance) string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 16 05:45:36 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. pkg/config/analysis/context.go

    	// Exists returns true if the specified resource exists in the context, false otherwise
    	Exists(c config.GroupVersionKind, name resource.FullName) bool
    
    	// ForEach iterates over all the entries of a given collection.
    	ForEach(c config.GroupVersionKind, fn IteratorFn)
    
    	// Canceled indicates that the context has been canceled. The analyzer should stop executing as soon as possible.
    	Canceled() bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 28 20:21:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. pkg/scheduler/internal/cache/node_tree.go

    		return
    	}
    	nt.removeNode(logger, old) // No error checking. We ignore whether the old node exists or not.
    	nt.addNode(logger, new)
    }
    
    // list returns the list of names of the node. NodeTree iterates over zones and in each zone iterates
    // over nodes in a round robin fashion.
    func (nt *nodeTree) list() ([]string, error) {
    	if len(nt.zones) == 0 {
    		return nil, nil
    	}
    	nodesList := make([]string, 0, nt.numNodes)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableTable.java

           * documented in the Javadoc. If a row Comparator is provided, cellSet() iterates across the
           * columns in the first row, the columns in the second row, etc. If a column Comparator is
           * provided but a row Comparator isn't, cellSet() iterates across the rows in the first
           * column, the rows in the second column, etc.
           */
          Comparator<Cell<R, C, V>> comparator =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
Back to top