- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for iteratorNoFlush (0.21 sec)
-
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/ListElementSourceTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 13 05:06:48 UTC 2020 - 12.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/AbstractIterationOrderRetainingElementSourceTest.groovy
then: source.iteratorNoFlush().collect() == iterationOrder("fizz") when: source.addPending(provider("fuzz")) iterator = source.iteratorNoFlush() next = iterator.next() then: next == "fizz" when: iterator.remove() then: !iterator.hasNext() source.iteratorNoFlush().collect() == [] when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Aug 25 10:08:46 UTC 2022 - 4.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/SortedSetElementSourceTest.groovy
then: source.iteratorNoFlush().collect() == iterationOrder("foo") when: source.addPending(provider("fuzz")) iterator = source.iteratorNoFlush() next = iterator.next() then: next == "foo" when: iterator.remove() then: !iterator.hasNext() source.iteratorNoFlush().collect() == [] when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 02 15:12:14 UTC 2023 - 5.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/ElementSourceSpec.groovy
source.addPending(provider("fizz")) source.addPendingCollection(setProvider("fuzz", "bazz")) then: source.iteratorNoFlush().collect() == iterationOrder("bar", "baz") when: source.realizePending() then: source.iteratorNoFlush().collect() == iterationOrder("foo", "bar", "baz", "fizz", "fuzz", "bazz") } def "can add only providers"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Aug 25 10:08:46 UTC 2022 - 9.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/DefaultDomainObjectCollection.java
@Override public Iterator<T> iterator() { return new IteratorImpl(store.iterator()); } Iterator<T> iteratorNoFlush() { if (store.constantTimeIsEmpty()) { return Collections.emptyIterator(); } return new IteratorImpl(store.iteratorNoFlush()); } @Override public void all(Action<? super T> action) { assertMutable("all(Action)");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 15.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/collections/FilteredElementSource.java
private final int estimatedSize; private S next; FilteringIterator(ElementSource<T> collection, CollectionFilter<S> filter) { this.iterator = collection.iteratorNoFlush(); this.filter = filter; this.estimatedSize = collection.estimatedSize(); this.next = findNext(); } @Nullable private S findNext() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 02 15:16:51 UTC 2023 - 6.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/collections/ElementSource.java
*/ @Override Iterator<T> iterator(); /** * Iterates over only the realized elements (without flushing any pending elements) */ Iterator<T> iteratorNoFlush(); /** * Returns false if this source is not empty or it is not fast to determine this. */ boolean constantTimeIsEmpty(); @Override int estimatedSize();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 02 15:12:15 UTC 2023 - 1.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/collections/IterationOrderRetainingSetElementSource.java
@Override public Iterator<T> iterator() { realizePending(); return new RealizedElementCollectionIterator(getInserted(), NO_DUPLICATES); } @Override public Iterator<T> iteratorNoFlush() { return new RealizedElementCollectionIterator(getInserted(), NO_DUPLICATES); } @Override public boolean add(T element) { modCount++; if (nonProvidedValues.add(element)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 02 15:12:15 UTC 2023 - 3.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/IterationOrderRetainingSetElementSourceTest.groovy
} def "can add the same element multiple times"() { when: 3.times { source.add("foo") } 3.times { source.addPending(provider("bar"))} then: source.iteratorNoFlush().collect() == ["foo"] and: source.iterator().collect() == ["foo", "bar"] } def "can re-add an ordinary value after removal"() { when: source.add("a")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 01 06:43:26 UTC 2024 - 4.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/collections/ListElementSource.java
@Override public Iterator<T> iterator() { realizePending(); return listIterator(); } @Override public Iterator<T> iteratorNoFlush() { return listIterator(); } @Override public ListIterator<T> listIterator() { return new RealizedElementListIterator(getInserted(), ALWAYS_ACCEPT); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 02 15:12:15 UTC 2023 - 7K bytes - Viewed (0)