Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for appendAll (0.59 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/CollectionPropertyInternal.java

         * </p>
         *
         * @param elements The elements to add
         */
        @Incubating
        @SuppressWarnings("unchecked")
        // TODO Use @SafeVarargs and make method final
        void appendAll(T... elements);
    
        /**
         * Adds zero or more elements to the property value.
         *
         * <p>The given iterable will be queried when the value of this property is queried.
         *
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 18:32:13 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            property.explicit
        }
    
        def "can add to explicit value with append"() {
            given:
            property.set([])
            property.appendAll(Providers.of(["1", "2"]))
            property.appendAll(Providers.of(["3", "4"]))
    
            expect:
            assertValueIs toImmutable(["1", "2", "3", "4"])
            property.explicit
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

        @SuppressWarnings("varargs")
        @SafeVarargs
        public final void appendAll(T... elements) {
            withActualValue(it -> it.addAll(elements));
        }
    
        @Override
        public void appendAll(Iterable<? extends T> elements) {
            withActualValue(it -> it.addAll(elements));
        }
    
        @Override
        public void appendAll(Provider<? extends Iterable<? extends T>> provider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializerTest.kt

            objectFactory().listProperty(T::class.java).apply {
                if (values.isNotEmpty()) {
                    uncheckedNonnullCast<CollectionPropertyInternal<T, Collection<T>>>(this).appendAll(*values)
                }
            }
    
        private
        inline fun <reified T : Any> propertyOf(value: T) =
            objectFactory().property(T::class.java).apply {
                set(value)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. cmd/storage-rest-common_gen.go

    	// string "u"
    	o = append(o, 0x82, 0xa1, 0x75)
    	if z.Update == nil {
    		o = msgp.AppendNil(o)
    	} else {
    		o, err = z.Update.MarshalMsg(o)
    		if err != nil {
    			err = msgp.WrapError(err, "Update")
    			return
    		}
    	}
    	// string "f"
    	o = append(o, 0xa1, 0x66)
    	if z.Final == nil {
    		o = msgp.AppendNil(o)
    	} else {
    		o, err = z.Final.MarshalMsg(o)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. cmd/batch-job-common-types_gen.go

    	// string "Disable"
    	o = append(o, 0x86, 0xa7, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65)
    	if z.Disable == nil {
    		o = msgp.AppendNil(o)
    	} else {
    		o = msgp.AppendBool(o, *z.Disable)
    	}
    	// string "Batch"
    	o = append(o, 0xa5, 0x42, 0x61, 0x74, 0x63, 0x68)
    	if z.Batch == nil {
    		o = msgp.AppendNil(o)
    	} else {
    		o = msgp.AppendInt(o, *z.Batch)
    	}
    	// string "InMemory"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  7. internal/grid/types.go

    	return bts, nil
    }
    
    // MarshalMsg appends the bytes representation of b to the provided byte slice.
    func (m *MSS) MarshalMsg(bytes []byte) (o []byte, err error) {
    	if m == nil || *m == nil {
    		return msgp.AppendNil(bytes), nil
    	}
    	o = msgp.AppendMapHeader(bytes, uint32(len(*m)))
    	for za0001, za0002 := range *m {
    		o = msgp.AppendString(o, za0001)
    		o = msgp.AppendString(o, za0002)
    	}
    	return o, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 01 23:42:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. cmd/batch-handlers_gen.go

    	if z.Replicate == nil {
    		o = msgp.AppendNil(o)
    	} else {
    		o, err = z.Replicate.MarshalMsg(o)
    		if err != nil {
    			err = msgp.WrapError(err, "Replicate")
    			return
    		}
    	}
    	// string "KeyRotate"
    	o = append(o, 0xa9, 0x4b, 0x65, 0x79, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65)
    	if z.KeyRotate == nil {
    		o = msgp.AppendNil(o)
    	} else {
    		o, err = z.KeyRotate.MarshalMsg(o)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2_gen.go

    		if z.ObjectV1 == nil {
    			o = msgp.AppendNil(o)
    		} else {
    			o, err = z.ObjectV1.MarshalMsg(o)
    			if err != nil {
    				err = msgp.WrapError(err, "ObjectV1")
    				return
    			}
    		}
    	}
    	if (zb0001Mask & 0x4) == 0 { // if not omitted
    		// string "V2Obj"
    		o = append(o, 0xa5, 0x56, 0x32, 0x4f, 0x62, 0x6a)
    		if z.ObjectV2 == nil {
    			o = msgp.AppendNil(o)
    		} else {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  10. src/log/log.go

    	})
    }
    
    // Println calls l.Output to print to the logger.
    // Arguments are handled in the manner of [fmt.Println].
    func (l *Logger) Println(v ...any) {
    	l.output(0, 2, func(b []byte) []byte {
    		return fmt.Appendln(b, v...)
    	})
    }
    
    // Fatal is equivalent to l.Print() followed by a call to [os.Exit](1).
    func (l *Logger) Fatal(v ...any) {
    	l.Output(2, fmt.Sprint(v...))
    	os.Exit(1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 12.9K bytes
    - Viewed (0)
Back to top