Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 9,719 for Else (0.06 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/duration/duration.go

    	if seconds := int(d.Seconds()); seconds < -1 {
    		return "<invalid>"
    	} else if seconds < 0 {
    		return "0s"
    	} else if seconds < 60 {
    		return fmt.Sprintf("%ds", seconds)
    	} else if minutes := int(d.Minutes()); minutes < 60 {
    		return fmt.Sprintf("%dm", minutes)
    	} else if hours := int(d.Hours()); hours < 24 {
    		return fmt.Sprintf("%dh", hours)
    	} else if hours < 24*365 {
    		return fmt.Sprintf("%dd", hours/24)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 09:44:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. test/if.go

    	count = 0
    	if true {
    		count = count + 1
    	} else {
    		count = count - 1
    	}
    	assertequal(count, 1, "if else true")
    
    	count = 0
    	if false {
    		count = count + 1
    	} else {
    		count = count - 1
    	}
    	assertequal(count, -1, "if else false")
    
    	count = 0
    	if t := 1; false {
    		count = count + 1
    		_ = t
    		t := 7
    		_ = t
    	} else {
    		count = count - t
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 07:47:26 UTC 2012
    - 1.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/ProgressStartEventSerializer.java

                    flags |= LOGGING_HEADER_IS_SUB_DESCRIPTION;
                } else {
                    flags |= LOGGING_HEADER;
                }
            }
    
            String status = event.getStatus();
            if (!status.isEmpty()) {
                if (description.endsWith(status)) {
                    flags |= STATUS_IS_SUB_DESCRIPTION;
                } else {
                    flags |= STATUS;
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Defaults.java

            return (T) Boolean.FALSE;
          } else if (type == char.class) {
            return (T) Character.valueOf('\0');
          } else if (type == byte.class) {
            return (T) Byte.valueOf((byte) 0);
          } else if (type == short.class) {
            return (T) Short.valueOf((short) 0);
          } else if (type == int.class) {
            return (T) Integer.valueOf(0);
          } else if (type == long.class) {
            return (T) Long.valueOf(0L);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/DoubleConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof Double) {
                return (Double) o;
            } else if (o instanceof Number) {
                return new Double(((Number) o).doubleValue());
            } else if (o instanceof String) {
                return toDouble((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/deepcopy.go

    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(string)
    			**out = **in
    		}
    	}
    
    	if in.Maximum != nil {
    		in, out := &in.Maximum, &out.Maximum
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(float64)
    			**out = **in
    		}
    	}
    
    	if in.Minimum != nil {
    		in, out := &in.Minimum, &out.Minimum
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(float64)
    			**out = **in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 17:55:23 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/xml/XmlValidation.java

                return true;
            } else if (c < 0x20) {
                return false;
            } else if (c <= 0xD7FF) {
                return true;
            } else if (c < 0xE000) {
                return false;
            } else if (c <= 0xFFFD) {
                return true;
            } else if (c < 0x10000) {
                return false;
            } else if (c <= 0x10FFFF) {
                return true;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 22 14:56:07 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  8. pkg/test/framework/components/echo/kube/templates/deployment.yaml

    {{- range $i, $p := $appContainer.ContainerPorts }}
    {{- if and $p.XDSServer (eq .Protocol "GRPC") }}
              - --xds-grpc-server={{ $p.Port }}
    {{- else if eq .Protocol "GRPC" }}
              - --grpc={{ $p.Port }}
    {{- else if eq .Protocol "TCP" }}
              - --tcp={{ $p.Port }}
    {{- else }}
              - --port={{ $p.Port }}
    {{- end }}
    {{- if $p.TLS }}
              - --tls={{ $p.Port }}
    {{- end }}
    {{- if $p.ServerFirst }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtExpressionInfoProvider.kt

         * foo = when(direction) {
         *   Direction.NORTH -> 1
         *   Direction.SOUTH -> 2
         *   else -> 3
         * }
         *
         * If when-expression has no subject, then else-branch would be reported as missing even if it is explicitly present:
         *
         * fun test() {
         *     when {
         *         true -> {}
         *         else -> {}
         *     }
         * }
         *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/AbstractPmdPluginVersionIntegrationTest.groovy

                "java.sourceCompatibility = 1.8"
            } else if (versionNumber < VersionNumber.parse('6.4.0') && TestPrecondition.satisfied(UnitTestPreconditions.Jdk10OrLater)) {
                "java.sourceCompatibility = 9"
            } else if (versionNumber < VersionNumber.parse('6.6.0') && TestPrecondition.satisfied(UnitTestPreconditions.Jdk11OrLater)) {
                "java.sourceCompatibility = 10"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top