- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for LongValueSnapshot (0.25 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/LongValueSnapshot.java
* limitations under the License. */ package org.gradle.internal.snapshot.impl; import org.gradle.internal.hash.Hasher; public class LongValueSnapshot extends AbstractIsolatableScalarValue<Long> { public LongValueSnapshot(Long value) { super(value); } @Override public void appendToHasher(Hasher hasher) { hasher.putLong(getValue()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 957 bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy
integer(Integer.MAX_VALUE) | _ integer(Integer.MIN_VALUE) | _ new LongValueSnapshot(123L) | _ new LongValueSnapshot(0L) | _ new LongValueSnapshot(Long.MAX_VALUE) | _ new LongValueSnapshot(Long.MIN_VALUE) | _ new ShortValueSnapshot(123 as short) | _ new ShortValueSnapshot(0 as short) | _
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-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) -
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) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java
public ValueSnapshot integerValue(Integer value) { return new IntegerValueSnapshot(value); } @Override public ValueSnapshot longValue(Long value) { return new LongValueSnapshot(value); } @Override public ValueSnapshot shortValue(Short value) { return new ShortValueSnapshot(value); } @Override
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/main/java/org/gradle/internal/snapshot/impl/DefaultIsolatableFactory.java
public Isolatable<?> integerValue(Integer value) { return new IntegerValueSnapshot(value); } @Override public Isolatable<?> longValue(Long value) { return new LongValueSnapshot(value); } @Override public Isolatable<?> shortValue(Short value) { return new ShortValueSnapshot(value); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 22:53:34 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 17K bytes - Viewed (0) -
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)