- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ListValueSnapshot (0.3 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ListValueSnapshot.java
import org.gradle.internal.snapshot.ValueSnapshotter; import java.util.List; public class ListValueSnapshot extends AbstractListSnapshot<ValueSnapshot> implements ValueSnapshot { public static final ListValueSnapshot EMPTY = new ListValueSnapshot(ImmutableList.of()); public ListValueSnapshot(ImmutableList<ValueSnapshot> elements) { super(elements); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SnapshotSerializer.java
encoder.writeSmallInt(STRING_SNAPSHOT); encoder.writeString(stringSnapshot.getValue()); } else if (snapshot instanceof ListValueSnapshot) { ListValueSnapshot listSnapshot = (ListValueSnapshot) snapshot; if (listSnapshot.getElements().isEmpty()) { encoder.writeSmallInt(EMPTY_LIST_SNAPSHOT); } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:01 UTC 2024 - 14.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedList.java
if (elements.isEmpty()) { return ListValueSnapshot.EMPTY; } ImmutableList.Builder<ValueSnapshot> builder = ImmutableList.builderWithExpectedSize(elements.size()); for (Isolatable<?> element : elements) { builder.add(element.asSnapshot()); } return new ListValueSnapshot(builder.build()); } @Override public List<Object> isolate() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java
} @Override public ValueSnapshot emptyList() { return ListValueSnapshot.EMPTY; } @Override public ValueSnapshot list(ImmutableList<ValueSnapshot> elements) { return new ListValueSnapshot(elements); } @Override public ValueSnapshot set(ImmutableSet<ValueSnapshot> elements) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:01 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy
} private ArrayValueSnapshot array(ValueSnapshot... elements) { return new ArrayValueSnapshot(ImmutableList.copyOf(elements)) } private ListValueSnapshot list(ValueSnapshot... elements) { return new ListValueSnapshot(ImmutableList.copyOf(elements)) } private SetValueSnapshot set(ValueSnapshot... elements) { return new SetValueSnapshot(ImmutableSet.copyOf(elements)) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:01 UTC 2024 - 8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy
expect: def snapshot1 = snapshotter.snapshot([]) snapshot1 instanceof ListValueSnapshot snapshot1 == snapshotter.snapshot([]) snapshot1 != snapshotter.snapshot("abc") def snapshot2 = snapshotter.snapshot(["123"]) snapshot2 instanceof ListValueSnapshot snapshot2 == snapshotter.snapshot(["123"]) snapshot2 != snapshot1 }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 29.5K bytes - Viewed (0)