Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for MapValueSnapshot (0.48 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/MapValueSnapshot.java

    import com.google.common.collect.ImmutableList;
    import org.gradle.internal.snapshot.ValueSnapshot;
    import org.gradle.internal.snapshot.ValueSnapshotter;
    
    public class MapValueSnapshot extends AbstractMapSnapshot<ValueSnapshot> implements ValueSnapshot {
        public MapValueSnapshot(ImmutableList<MapEntrySnapshot<ValueSnapshot>> entries) {
            super(entries);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SnapshotSerializer.java

                }
                encoder.writeBinary(valueSnapshot.getValue());
            } else if (snapshot instanceof MapValueSnapshot) {
                MapValueSnapshot mapSnapshot = (MapValueSnapshot) snapshot;
                encoder.writeSmallInt(MAP_SNAPSHOT);
                encoder.writeSmallInt(mapSnapshot.getEntries().size());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java

            public ValueSnapshot map(ImmutableList<MapEntrySnapshot<ValueSnapshot>> elements) {
                return new MapValueSnapshot(elements);
            }
    
            @Override
            public ValueSnapshot properties(ImmutableList<MapEntrySnapshot<ValueSnapshot>> elements) {
                return new MapValueSnapshot(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)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractIsolatedMap.java

            for (MapEntrySnapshot<Isolatable<?>> entry : entries) {
                builder.add(new MapEntrySnapshot<ValueSnapshot>(entry.getKey().asSnapshot(), entry.getValue().asSnapshot()));
            }
            return new MapValueSnapshot(builder.build());
        }
    
        @Override
        public T isolate() {
            T map = create();
            for (MapEntrySnapshot<Isolatable<?>> entry : getEntries()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy

            def snapshot1 = snapshotter.snapshot([:])
            snapshot1 instanceof MapValueSnapshot
            snapshot1 == snapshotter.snapshot([:])
            snapshot1 != snapshotter.snapshot("abc")
            snapshot1 != snapshotter.snapshot([a: "123"])
    
            def snapshot2 = snapshotter.snapshot([a: "123"])
            snapshot2 instanceof MapValueSnapshot
            snapshot2 == snapshotter.snapshot([a: "123"])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy

            builder.add(new MapEntrySnapshot<ValueSnapshot>(string("123"), integer(123)))
            builder.add(new MapEntrySnapshot<ValueSnapshot>(string("456"), list(integer(-12), integer(12))))
            def original = new MapValueSnapshot(builder.build())
            write(original)
    
            expect:
            original == written
        }
    
        def "serializes managed type properties"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top