Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 85 for integers (0.62 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheWorkerApiIntegrationTest.groovy

            type                           | initialValue   | expectedOutput
            "Property<Boolean>"            | "true"         | "true"
            "ListProperty<Integer>"        | "[1, 2]"       | "[1, 2]"
            "SetProperty<Integer>"         | "[1, 2, 1]"    | "[1, 2]"
            "MapProperty<String, Integer>" | "[a: 1, b: 2]" | "[a:1, b:2]"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/internal/CastTest.groovy

    class CastTest extends Specification {
    
        def "casting"() {
            given:
            def arg = "1"
    
            when:
            cast(Integer, arg)
    
            then:
            def e = thrown(ClassCastException)
            e.message == "Failed to cast object $arg of type ${arg.class.name} to target type ${Integer.name}"
    
            when:
            def result = cast(CharSequence, arg)
    
            then:
            notThrown(ClassCastException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonContextParser.java

                String daemonRegistryDir = matcher.group(4);
                String pidStr = matcher.group(5);
                Long pid = pidStr.equals("null") ? null : Long.parseLong(pidStr);
                Integer idleTimeout = Integer.decode(matcher.group(6));
                DaemonParameters.Priority priority = matcher.group(7) == null ? DaemonParameters.Priority.NORMAL : DaemonParameters.Priority.valueOf(matcher.group(7).substring(",priority=".length()));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 09:22:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DefaultDaemonContext.java

        private final String uid;
        private final File javaHome;
        private final File daemonRegistryDir;
        private final Long pid;
        private final Integer idleTimeout;
        private final Collection<String> daemonOpts;
        private final boolean applyInstrumentationAgent;
        private final DaemonParameters.Priority priority;
        private final NativeServicesMode nativeServicesMode;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/scheduling/v1/types.go

    // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    // +k8s:prerelease-lifecycle-gen:introduced=1.14
    
    // PriorityClass defines mapping from a priority class name to the priority
    // integer value. The value can be any valid integer.
    type PriorityClass struct {
    	metav1.TypeMeta `json:",inline"`
    	// Standard object's metadata.
    	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/structural.go

    	// x-kubernetes-int-or-string specifies that this value is
    	// either an integer or a string. If this is true, an empty
    	// type is allowed and type as child of anyOf is permitted
    	// if following one of the following patterns:
    	//
    	// 1) anyOf:
    	//    - type: integer
    	//    - type: string
    	// 2) allOf:
    	//    - anyOf:
    	//      - type: integer
    	//      - type: string
    	//    - ... zero or more
    	XIntOrString bool
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/LogLevelMapping.java

    import java.util.Map;
    
    public final class LogLevelMapping {
    
        private LogLevelMapping() {
        }
    
        @SuppressWarnings("DoubleBraceInitialization")
        public static final Map<Integer, LogLevel> ANT_IVY_2_SLF4J = new HashMap<Integer, LogLevel>() {
            {
                // Project is `org.apache.tools.ant.Project`
                put(0 /* Project.MSG_ERR */, LogLevel.ERROR);
                put(1 /* Project.MSG_WARN */, LogLevel.WARN);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:48:55 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/decls0.go

    	// The error message below could be better. At the moment
    	// we believe an integer that is too large is not an integer.
    	// But at least we get an error.
    	iA1 [1 /* ERROR "invalid array length" */ <<100]int
    	iA2 [- /* ERROR "invalid array length" */ 1]complex128
    	iA3 ["foo" /* ERROR "must be integer" */ ]string
    	iA4 [float64 /* ERROR "must be integer" */ (0)]int
    )
    
    
    type (
    	p1 pi.foo /* ERROR "pi.foo is not a type" */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/events/SelectOptionPromptEvent.java

            return builder.toString();
        }
    
        @Override
        public PromptResult<Integer> convert(String text) {
            if (text.isEmpty()) {
                return PromptResult.response(defaultOption);
            }
            String trimmed = text.trim();
            if (trimmed.matches("\\d+")) {
                int value = Integer.parseInt(trimmed);
                if (value > 0 && value <= options.size()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. src/go/types/conversions.go

    		}
    		return false
    	}
    
    	var ok bool
    	var cause string
    	switch {
    	case constArg && isConstType(T):
    		// constant conversion
    		ok = constConvertibleTo(T, &x.val)
    		// A conversion from an integer constant to an integer type
    		// can only fail if there's overflow. Give a concise error.
    		// (go.dev/issue/63563)
    		if !ok && isInteger(x.typ) && isInteger(T) {
    			check.errorf(x, InvalidConversion, "constant %s overflows %s", x.val, T)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top