Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SetValueSnapshot (0.22 sec)

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

                return this;
            }
            return newSnapshot;
        }
    
        private boolean isEqualSetValueSnapshot(ValueSnapshot newSnapshot) {
            if (newSnapshot instanceof SetValueSnapshot) {
                SetValueSnapshot other = (SetValueSnapshot) newSnapshot;
                if (elements.equals(other.elements)) {
                    return true;
                }
            }
            return false;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SnapshotSerializer.java

                encoder.writeString(enumSnapshot.getClassName());
                encoder.writeString(enumSnapshot.getName());
            } else if (snapshot instanceof SetValueSnapshot) {
                SetValueSnapshot setSnapshot = (SetValueSnapshot) snapshot;
                encoder.writeSmallInt(SET_SNAPSHOT);
                encoder.writeSmallInt(setSnapshot.getElements().size());
    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/IsolatedSet.java

            for (Isolatable<?> element : elements) {
                builder.add(element.asSnapshot());
            }
            return new SetValueSnapshot(builder.build());
        }
    
        @Override
        public Set<Object> isolate() {
            Set<Object> set = new LinkedHashSet<>(elements.size());
            for (Isolatable<?> element : elements) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy

        }
    
        private ListValueSnapshot list(ValueSnapshot... elements) {
            return new ListValueSnapshot(ImmutableList.copyOf(elements))
        }
    
        private SetValueSnapshot set(ValueSnapshot... elements) {
            return new SetValueSnapshot(ImmutableSet.copyOf(elements))
        }
    
        private IntegerValueSnapshot integer(int value) {
            return new IntegerValueSnapshot(value)
        }
    
    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 ListValueSnapshot(elements);
            }
    
            @Override
            public ValueSnapshot set(ImmutableSet<ValueSnapshot> elements) {
                return new SetValueSnapshot(elements);
            }
    
            @Override
            public ValueSnapshot map(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)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy

            def snapshot1 = snapshotter.snapshot([] as Set)
            snapshot1 instanceof SetValueSnapshot
            snapshot1 == snapshotter.snapshot([] as Set)
            snapshot1 != snapshotter.snapshot("abc")
            snapshot1 != snapshotter.snapshot([])
    
            def snapshot2 = snapshotter.snapshot(["123"] as Set)
            snapshot2 instanceof SetValueSnapshot
            snapshot2 == snapshotter.snapshot(["123"] as Set)
    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