Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LongValueSnapshot (0.23 sec)

  1. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java

            @Override
            protected void serialize(Encoder encoder, LongValueSnapshot value) throws Exception {
                encoder.writeLong(value.getValue());
            }
    
            @Override
            protected LongValueSnapshot deserialize(Decoder decoder) throws Exception {
                return new LongValueSnapshot(decoder.readLong());
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SnapshotSerializer.java

                encoder.writeSmallInt(INTEGER_SNAPSHOT);
                encoder.writeInt(integerSnapshot.getValue());
            } else if (snapshot instanceof LongValueSnapshot) {
                LongValueSnapshot longSnapshot = (LongValueSnapshot) snapshot;
                encoder.writeSmallInt(LONG_SNAPSHOT);
                encoder.writeLong(longSnapshot.getValue());
            } else if (snapshot instanceof ShortValueSnapshot) {
    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/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy

        }
    
        def "creates isolated long"() {
            expect:
            def original = 123L
            def isolated = isolatableFactory.isolate(original)
            isolated instanceof LongValueSnapshot
            isolated.isolate().is(original)
        }
    
        def "can coerce long value"() {
            expect:
            def original = 123L
            def isolated = isolatableFactory.isolate(original)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy

            snapshotter.snapshot(456) != snapshotter.snapshot(isolated)
        }
    
        def "creates snapshot for long"() {
            expect:
            def snapshot = snapshotter.snapshot(123L)
            snapshot instanceof LongValueSnapshot
            snapshot == snapshotter.snapshot(123L)
            snapshot != snapshotter.snapshot(-1L)
            snapshot != snapshotter.snapshot(123)
            snapshot != snapshotter.snapshot(123 as short)
    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