- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for MapEntrySnapshot (0.25 sec)
-
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/MapEntrySnapshot.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.snapshot.impl; public class MapEntrySnapshot<T> { private final T key; private final T value; public MapEntrySnapshot(T key, T value) { this.key = key; this.value = value; } public T getKey() { return key; } public T getValue() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractIsolatedMap.java
public AbstractIsolatedMap(ImmutableList<MapEntrySnapshot<Isolatable<?>>> entries) { super(entries); } @Override public ValueSnapshot asSnapshot() { ImmutableList.Builder<MapEntrySnapshot<ValueSnapshot>> builder = ImmutableList.builderWithExpectedSize(entries.size()); for (MapEntrySnapshot<Isolatable<?>> entry : entries) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractMapSnapshot.java
class AbstractMapSnapshot<T extends Hashable> implements Hashable { protected final ImmutableList<MapEntrySnapshot<T>> entries; public AbstractMapSnapshot(ImmutableList<MapEntrySnapshot<T>> entries) { this.entries = entries; } public ImmutableList<MapEntrySnapshot<T>> getEntries() { return entries; } @Override public void appendToHasher(Hasher hasher) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/IsolatedCodecs.kt
override suspend fun ReadContext.decode(): IsolatedMap { val elements = readNonNull<ImmutableList<MapEntrySnapshot<Isolatable<*>>>>() return IsolatedMap(elements) } } object MapEntrySnapshotCodec : Codec<MapEntrySnapshot<Any>> { override suspend fun WriteContext.encode(value: MapEntrySnapshot<Any>) { write(value.key) write(value.value) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 7.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy
expect: 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) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedProperties.java
import javax.annotation.Nullable; import java.util.Properties; public class IsolatedProperties extends AbstractIsolatedMap<Properties> { public IsolatedProperties(ImmutableList<MapEntrySnapshot<Isolatable<?>>> entries) { super(entries); } @Nullable @Override public Properties create() { return new Properties(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedMap.java
import javax.annotation.Nullable; import java.util.LinkedHashMap; import java.util.Map; public class IsolatedMap extends AbstractIsolatedMap<Map<Object, Object>> { public IsolatedMap(ImmutableList<MapEntrySnapshot<Isolatable<?>>> entries) { super(entries); } @Nullable @Override public Map<Object, Object> create() { return new LinkedHashMap<>(getEntries().size()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/MapValueSnapshot.java
import org.gradle.internal.snapshot.ValueSnapshotter; public class MapValueSnapshot extends AbstractMapSnapshot<ValueSnapshot> implements ValueSnapshot { public MapValueSnapshot(ImmutableList<MapEntrySnapshot<ValueSnapshot>> entries) { super(entries); } @Override public ValueSnapshot snapshot(Object value, ValueSnapshotter snapshotter) { ValueSnapshot newSnapshot = snapshotter.snapshot(value);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java
} @Override 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) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultIsolatableFactory.java
return new IsolatedSet(elements); } @Override public Isolatable<?> map(ImmutableList<MapEntrySnapshot<Isolatable<?>>> elements) { return new IsolatedMap(elements); } @Override public Isolatable<?> properties(ImmutableList<MapEntrySnapshot<Isolatable<?>>> elements) { return new IsolatedProperties(elements); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 22:53:34 UTC 2024 - 6.5K bytes - Viewed (0)