Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 409 for enum2 (3.48 sec)

  1. .teamcity/src/main/kotlin/model/CIBuildModel.kt

            timeout = 30,
            channel = "adhoc",
            extraParameters = "--checks none"
        );
    }
    
    enum class Trigger {
        never, eachCommit, daily, weekly
    }
    
    const val GRADLE_BUILD_SMOKE_TEST_NAME = "gradleBuildSmokeTest"
    
    enum class SpecificBuild {
        CompileAll {
            override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 03:39:03 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

         */
        static GetCheckedTypeValidator getBestValidator() {
          try {
            @SuppressWarnings("rawtypes") // class literals
            Class<? extends Enum> theClass =
                Class.forName(CLASS_VALUE_VALIDATOR_NAME).asSubclass(Enum.class);
            return (GetCheckedTypeValidator) theClass.getEnumConstants()[0];
          } catch (ClassNotFoundException
              | RuntimeException
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/authoring-builds/structuring/sharing_build_logic_between_subprojects.adoc

    open class MyCustomTask : DefaultTask() {
        @TaskAction
        fun calculateSum() {
            // Custom logic to calculate the sum of two numbers
            val num1 = 5
            val num2 = 7
            val sum = num1 + num2
    
            // Print the result
            println("Sum: $sum")
        }
    }
    ----
    =====
    [.multi-language-sample]
    =====
    .MyCustomTask.groovy
    [source, groovy]
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 12:58:46 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. pkg/workloadapi/workload.proto

    }
    
    message Locality {
      string region = 1;
      string zone = 2;
      string subzone = 3;
    }
    
    enum WorkloadStatus {
      // Workload is healthy and ready to serve traffic.
      HEALTHY = 0;
      // Workload is unhealthy and NOT ready to serve traffic.
      UNHEALTHY = 1;
    }
    
    enum WorkloadType {
      DEPLOYMENT = 0;
      CRONJOB = 1;
      POD = 2;
      JOB = 3;
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:35 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

                name().toLowerCase()
            }
        }
    
        enum ParameterKind {
            SIMPLE,
            SERVICE_REFERENCE,
            NAMED_SERVICE_REFERENCE;
    
            @Override
            String toString() {
                "${name().toLowerCase().replace('_', ' ')} parameter"
            }
        }
    
        enum InjectionStyle {
            PLUGIN,
            NEW_INSTANCE;
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

                    )
                );
            }
            throw new IllegalArgumentException(String.format("Cannot convert value '%s' of type '%s' to enum type '%s'",
                value, value.getClass().getName(), enumType.getName()));
        }
    
        @Nullable
        private static <T extends Enum<T>> T findEnumValue(Class<? extends T> enumType, final String literal) {
            List<? extends T> enumConstants = Arrays.asList(enumType.getEnumConstants());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/metrics_test.go

    					"foo": "barx",
    				},
    			},
    			schema: apiextensions.JSONSchemaProps{
    				Type: "object",
    				Properties: map[string]apiextensions.JSONSchemaProps{
    					"foo": {
    						Type: "string",
    						Enum: []apiextensions.JSON{
    							"barx", "bar",
    						},
    					},
    				},
    			},
    			want: `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelGroovyScalarConfigurationIntegrationTest.groovy

            output.contains 'prop theCharacter : null'
            output.contains 'prop theString    : null'
            output.contains 'prop theThing     : null'
        }
    
        void 'enum types require valid enum constants'() {
            when:
            buildFile << CLASSES
            buildFile << """
                model {
                    props {
                        theThing = 'IS_NOT_A_TOASTER'
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        List<String> temp = new ArrayList<>();
        for (Feature<?> feature : features) {
          Object featureAsObject = feature; // to work around bogus JDK warning
          if (featureAsObject instanceof Enum) {
            Enum<?> f = (Enum<?>) featureAsObject;
            temp.add(f.getDeclaringClass().getSimpleName() + "." + feature);
          } else {
            temp.add(feature.toString());
          }
        }
        return temp.toString();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/test/integration/conversion/conversion_test.go

    			"key": "value",
    		}
    		u.Object["num"] = map[string]interface{}{
    			"num1": int64(1),
    			"num2": int64(1000000),
    		}
    	case "v1beta1":
    		u.Object["content"] = map[string]interface{}{
    			"key": "value",
    		}
    		u.Object["num"] = map[string]interface{}{
    			"num1": int64(1),
    			"num2": int64(1000000),
    		}
    	case "v1beta2":
    		u.Object["contentv2"] = map[string]interface{}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 05:32:34 UTC 2023
    - 47.1K bytes
    - Viewed (0)
Back to top