- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 284 for setZero (0.37 sec)
-
src/reflect/value.go
w[28] != 0 || w[29] != 0 || w[30] != 0 || w[31] != 0 { return false } w = w[n:] } return true } // SetZero sets v to be the zero value of v's type. // It panics if [Value.CanSet] returns false. func (v Value) SetZero() { v.mustBeAssignable() switch v.kind() { case Bool: *(*bool)(v.ptr) = false case Int: *(*int)(v.ptr) = 0 case Int8:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
pkg/kubelet/nodestatus/setters.go
// per image stored in the node status. MaxNamesPerImageInNodeStatus = 5 ) // Setter modifies the node in-place, and returns an error if the modification failed. // Setters may partially mutate the node before returning an error. type Setter func(ctx context.Context, node *v1.Node) error // NodeAddress returns a Setter that updates address-related information on the node.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 12:12:04 UTC 2024 - 30.5K bytes - Viewed (0) -
testing/architecture-test/src/test/java/org/gradle/architecture/test/KotlinCompatibilityTest.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/ToolingParameterProxy.java
if (setters.size() != getters.size()) { throwParameterValidationError(clazz, "It contains a different number of getters and setters."); } for (String property : setters.keySet()) { if (!getters.containsKey(property)) { throwParameterValidationError(clazz, String.format("A setter for property %s was found but no getter.", property));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Dec 15 10:27:26 UTC 2023 - 7K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/cli.go
} } setters = append(setters, setter) } return func() error { // Apply the setter for every flag. for _, setter := range setters { setter() if err != nil { return err } } return nil } } func sampleIndex(flag *bool, si string, sampleType, option string, ui plugin.UI) string { if *flag { if si == "" { return sampleType }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 16:39:48 UTC 2023 - 12.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/ToolingParameterProxyTest.groovy
when: ToolingParameterProxy.validateParameter(InvalidParameter2) then: IllegalArgumentException e = thrown() e.message == "org.gradle.tooling.internal.consumer.connection.ToolingParameterProxyTest\$InvalidParameter2 is not a valid parameter type. Method setValue is neither a setter nor a getter." } def "returns parameter invalid when setter and getter have different types"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 5.2K bytes - Viewed (0) -
test/typeparam/settable.go
"strconv" ) // Various implementations of fromStrings(). type Setter[B any] interface { Set(string) *B } // Takes two type parameters where PT = *T func fromStrings1[T any, PT Setter[T]](s []string) []T { result := make([]T, len(s)) for i, v := range s { // The type of &result[i] is *T which is in the type list // of Setter, so we can convert it to PT. p := PT(&result[i]) // PT has a Set method.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:48:58 UTC 2022 - 2.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:37 UTC 2024 - 63K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/Managed.java
* * <h3>Abstract classes</h3> * <p> * A managed type can be implemented as an abstract class. * All property getters and setters must be declared {@code abstract} (with the exception of calculated read-only properties). * The class cannot contain instance variables, constructors, or any methods that are not a getter or setter. * * <h3>Creating managed model elements</h3>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/PropertyAccessorType.java
import java.lang.reflect.Type; import java.util.Collection; /** * Distinguishes "get" getters, "is" getters and setters from non-property methods. * * Generally follows the JavaBean conventions, with 2 exceptions: is methods can return `Boolean` (in addition to `boolean`) and setter methods can return non-void values. * * This is essentially a superset of the conventions supported by Java, Groovy and Kotlin. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.7K bytes - Viewed (0)