Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1301 - 1310 of 6,799 for _return (0.08 sec)

  1. doc/go_spec.html

    </p>
    
    <pre>
    func f[P any](x any) int {
    	switch x.(type) {
    	case P:
    		return 0
    	case string:
    		return 1
    	case []P:
    		return 2
    	case []byte:
    		return 3
    	default:
    		return 4
    	}
    }
    
    var v1 = f[string]("foo")   // v1 == 0
    var v2 = f[byte]([]byte{})  // v2 == 2
    </pre>
    
    <p>
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/StringUtil.java

                return text;
            }
            if (text.endsWith(suffix)) {
                return text.substring(0, text.length() - suffix.length());
            }
            return text;
        }
    
        /**
         * プレフィックスを削ります。
         *
         * @param text
         *            テキスト
         * @param prefix
         *            プレフィックス
         * @return 結果の文字列
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

            exceptions = initList(exceptions);
    
            exceptions.add(e);
    
            return this;
        }
    
        public OverConstrainedVersionException getVersionRangeViolation(int i) {
            return (OverConstrainedVersionException) versionRangeViolations.get(i);
        }
    
        public List<Exception> getVersionRangeViolations() {
            return versionRangeViolations == null
                    ? Collections.emptyList()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. cmd/handler-utils_test.go

    		createBucketConfigBuffer := bytes.NewReader(createBucketConfigBytes)
    		req.Body = io.NopCloser(createBucketConfigBuffer)
    		req.ContentLength = int64(createBucketConfigBuffer.Len())
    		return req
    	}
    
    	testCases := []struct {
    		request            *http.Request
    		serverConfigRegion string
    		expectedCode       APIErrorCode
    	}{
    		// Test case - 1.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

        return new StringSourceFactory();
      }
    
      public static ByteSourceFactory byteArraySourceFactory() {
        return new ByteArraySourceFactory();
      }
    
      public static ByteSourceFactory emptyByteSourceFactory() {
        return new EmptyByteSourceFactory();
      }
    
      public static CharSourceFactory emptyCharSourceFactory() {
        return new EmptyCharSourceFactory();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

        }
    
        @Override
        public BeanDesc getBeanDesc() {
            return beanDesc;
        }
    
        @Override
        public Method getMethod() {
            return method;
        }
    
        @Override
        public String getMethodName() {
            return methodName;
        }
    
        @Override
        public Class<?>[] getParameterTypes() {
            return parameterTypes;
        }
    
        @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java

            return artifactDependencies;
        }
    
        public ArtifactRepository getLocalRepository() {
            return localRepository;
        }
    
        public ArtifactResolutionRequest setLocalRepository(ArtifactRepository localRepository) {
            this.localRepository = localRepository;
    
            return this;
        }
    
        public List<ArtifactRepository> getRemoteRepositories() {
            return remoteRepositories;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java

            missingArtifacts.add(artifact);
    
            return this;
        }
    
        public ArtifactResolutionResult setUnresolvedArtifacts(final List<Artifact> unresolvedArtifacts) {
            this.missingArtifacts = unresolvedArtifacts;
    
            return this;
        }
    
        public boolean isSuccess() {
            return !(hasMissingArtifacts() || hasExceptions());
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

                return !metadata.getVersion().isEmpty();
            }
    
            public boolean storedInGroupDirectory() {
                return metadata.getArtifactId().isEmpty();
            }
    
            public String getGroupId() {
                return nullify(metadata.getGroupId());
            }
    
            public String getArtifactId() {
                return nullify(metadata.getArtifactId());
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java

        assertEmpty(getMultiset());
      }
    
      /**
       * Returns {@link Method} instances for the read tests that assume multisets support duplicates so
       * that the test of {@code Multisets.forSet()} can suppress them.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static List<Method> getElementSetDuplicateInitializingMethods() {
        return asList(
            getMethod(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top