Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for ValueSnapshot (0.31 sec)

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

                encoder.writeSmallInt(GRADLE_SERIALIZED_SNAPSHOT);
                if (valueSnapshot.getImplementationHash() == null) {
                    encoder.writeBoolean(false);
                } else {
                    encoder.writeBoolean(true);
                    serializer.write(encoder, valueSnapshot.getImplementationHash());
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultInputFingerprinter.java

        }
    
        @Override
        public Result fingerprintInputProperties(
            ImmutableSortedMap<String, ValueSnapshot> previousValueSnapshots,
            ImmutableSortedMap<String, ? extends FileCollectionFingerprint> previousFingerprints,
            ImmutableSortedMap<String, ValueSnapshot> knownCurrentValueSnapshots,
            ImmutableSortedMap<String, CurrentFileCollectionFingerprint> knownCurrentFingerprints,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java

            @Override
            public ValueSnapshot list(ImmutableList<ValueSnapshot> elements) {
                return new ListValueSnapshot(elements);
            }
    
            @Override
            public ValueSnapshot set(ImmutableSet<ValueSnapshot> elements) {
                return new SetValueSnapshot(elements);
            }
    
            @Override
            public ValueSnapshot map(ImmutableList<MapEntrySnapshot<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)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/DefaultPreviousExecutionStateSerializer.java

            }
    
            ImmutableSortedMap.Builder<String, ValueSnapshot> builder = ImmutableSortedMap.naturalOrder();
            for (int i = 0; i < size; i++) {
                builder.put(decoder.readString(), readValueSnapshot(decoder));
            }
            return builder.build();
        }
    
        public void writeInputProperties(Encoder encoder, ImmutableMap<String, ValueSnapshot> properties) throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 08:25:58 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/GradleSerializedValueSnapshot.java

            return serializedValue;
        }
    
        @Override
        public ValueSnapshot snapshot(Object value, ValueSnapshotter snapshotter) {
            ValueSnapshot snapshot = snapshotter.snapshot(value);
            if (hasSameSerializedValue(snapshot)) {
                return this;
            }
            return snapshot;
        }
    
        private boolean hasSameSerializedValue(ValueSnapshot snapshot) {
            if (snapshot instanceof GradleSerializedValueSnapshot) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractScalarValueSnapshot.java

    package org.gradle.internal.snapshot.impl;
    
    import org.gradle.internal.snapshot.ValueSnapshot;
    import org.gradle.internal.snapshot.ValueSnapshotter;
    
    /**
     * A snapshot of an immutable scalar value. Should only be used for immutable JVM provided or core Gradle types.
     *
     * @param <T> the type of the value
     */
    abstract class AbstractScalarValueSnapshot<T> implements ValueSnapshot {
        private final T value;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy

            original == written
        }
    
        def "serializes map properties"() {
            def builder = ImmutableList.<MapEntrySnapshot<ValueSnapshot>> builder()
            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)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ValueSnapshotter.java

         */
        ValueSnapshot snapshot(@Nullable Object value, ValueSnapshot candidate) throws ValueSnapshottingException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/JavaSerializedValueSnapshot.java

            return implementationHash;
        }
    
        public byte[] getValue() {
            return serializedValue;
        }
    
        @Override
        public ValueSnapshot snapshot(Object value, ValueSnapshotter snapshotter) {
            ValueSnapshot snapshot = snapshotter.snapshot(value);
            if (equals(snapshot)) {
                return this;
            }
            return snapshot;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 12:37:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/ImplementationSnapshot.java

            return classIdentifier;
        }
    
        @Nullable
        public abstract HashCode getClassLoaderHash();
    
        @Override
        public ValueSnapshot snapshot(@Nullable Object value, ValueSnapshotter snapshotter) {
            ValueSnapshot other = snapshotter.snapshot(value);
            if (this.isSameSnapshot(other)) {
                return this;
            }
            return other;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top