Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ImmutableManagedValueSnapshot (0.36 sec)

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

    import org.gradle.internal.snapshot.ValueSnapshotter;
    
    import javax.annotation.Nullable;
    import java.util.Objects;
    
    public class ImmutableManagedValueSnapshot implements ValueSnapshot {
        private final String className;
    
        @Nullable
        private final String value;
    
        public ImmutableManagedValueSnapshot(String className, @Nullable String value) {
            this.className = className;
            this.value = value;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SnapshotSerializer.java

                        write(encoder, valueSnapshot);
                    }
                }
            } else if (snapshot instanceof ImmutableManagedValueSnapshot) {
                encoder.writeSmallInt(IMMUTABLE_MANAGED_SNAPSHOT);
                ImmutableManagedValueSnapshot valueSnapshot = (ImmutableManagedValueSnapshot) snapshot;
                encoder.writeString(valueSnapshot.getClassName());
                encoder.writeNullableString(valueSnapshot.getValue());
    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/IsolatedImmutableManagedValue.java

            super(managed);
            this.managedFactoryRegistry = managedFactoryRegistry;
        }
    
        @Override
        public ValueSnapshot asSnapshot() {
            return new ImmutableManagedValueSnapshot(getValue().publicType().getName(), (String) getValue().unpackState());
        }
    
        @Override
        public void appendToHasher(Hasher hasher) {
            asSnapshot().appendToHasher(hasher);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy

            write(original)
    
            expect:
            original == written
        }
    
        def "serializes immutable managed type properties"() {
            def original = new ImmutableManagedValueSnapshot("type", "name")
            write(original)
    
            expect:
            original == written
        }
    
        def "serializes class implementation properties"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java

                return new AttributeDefinitionSnapshot(value, classLoaderHasher);
            }
    
            @Override
            public ValueSnapshot managedImmutableValue(Managed managed) {
                return new ImmutableManagedValueSnapshot(managed.publicType().getName(), (String) managed.unpackState());
            }
    
            @Override
            public ValueSnapshot managedValue(Managed value, ValueSnapshot state) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy

            def value2 = instantiator.named(Thing, "value2")
            def value3 = instantiator.named(Named, "value1")
    
            expect:
            def snapshot = snapshotter.snapshot(value)
            snapshot instanceof ImmutableManagedValueSnapshot
            snapshot == snapshotter.snapshot(value)
            snapshot == snapshotter.snapshot(value1)
            snapshot != snapshotter.snapshot(value2)
            snapshot != snapshotter.snapshot(value3)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.5K bytes
    - Viewed (0)
Back to top