Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 631 - 640 of 2,996 for switch (0.04 seconds)

  1. src/main/java/jcifs/smb/MultiChannelManager.java

            }
    
            public ChannelInfo selectChannel(LoadBalancingStrategy strategy) {
                if (channels.isEmpty()) {
                    return null;
                }
    
                switch (strategy) {
                case ROUND_ROBIN:
                    int index = roundRobinIndex.getAndIncrement() % channels.size();
                    return channels.get(index);
    
                case LEAST_CONNECTIONS:
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/RestTestsFromSnippetsTask.groovy

             * snippets that shouldn't be marked `// CONSOLE`, like examples for
             * js client, should always be marked with `// NOTCONSOLE`.
             *
             * `sh` snippets that contain `curl` almost always should be marked
             * with `// CONSOLE`. In the exceptionally rare cases where they are
             * not communicating with Elasticsearch, like the examples in the ec2
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 19.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/scheduler/AdminSchedulerAction.java

         */
        private static OptionalEntity<ScheduledJob> getEntity(final CreateForm form, final String username, final long currentTime) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new ScheduledJob()).map(entity -> {
                    entity.setCreatedBy(username);
                    entity.setCreatedTime(currentTime);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 21.8K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java

        //                                                                        ============
    
        private static OptionalEntity<KuromojiItem> getEntity(final CreateForm form) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                final KuromojiItem entity = new KuromojiItem(0, StringUtil.EMPTY, StringUtil.EMPTY, StringUtil.EMPTY, StringUtil.EMPTY);
                return OptionalEntity.of(entity);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/UniAddress.java

                addrs[0] = new UniAddress(NbtAddress.getByName(hostname));
                return addrs;
            }
    
            for (i = 0; i < resolveOrder.length; i++) {
                try {
                    switch (resolveOrder[i]) {
                    case RESOLVER_LMHOSTS:
                        addr = Lmhosts.getByName(hostname);
                        if (addr == null) {
                            continue;
                        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
      void awaitTimedWaiting(Thread thread) {
        while (true) {
          switch (thread.getState()) {
            case BLOCKED:
            case NEW:
            case RUNNABLE:
            case WAITING:
              Thread.yield();
              break;
            case TIMED_WAITING:
              return;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

                    return null;
                }).orElse(null);
            }
            return null;
        }
    
        @Override
        public ActionResponse getResponse(final SsoResponseType responseType) {
            return switch (responseType) {
            case METADATA -> getMetadataResponse();
            case LOGOUT -> getLogoutResponse();
            default -> null;
            };
        }
    
        /**
         * Gets the metadata response.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 03:13:33 GMT 2026
    - 20.2K bytes
    - Click Count (3)
  8. src/archive/zip/reader.go

    	utf8Valid1, utf8Require1 := detectUTF8(f.Name)
    	utf8Valid2, utf8Require2 := detectUTF8(f.Comment)
    	switch {
    	case !utf8Valid1 || !utf8Valid2:
    		// Name and Comment definitely not UTF-8.
    		f.NonUTF8 = true
    	case !utf8Require1 && !utf8Require2:
    		// Name and Comment use only single-byte runes that overlap with UTF-8.
    		f.NonUTF8 = false
    	default:
    		// Might be UTF-8, might be some other encoding; preserve existing flag.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 15 18:35:56 GMT 2026
    - 28.5K bytes
    - Click Count (0)
  9. cmd/object-api-interface.go

    func (o *ObjectOptions) SetDeleteReplicationState(dsc ReplicateDecision, vID string) {
    	o.DeleteReplication = ReplicationState{
    		ReplicateDecisionStr: dsc.String(),
    	}
    	switch o.VersionID {
    	case "":
    		o.DeleteReplication.ReplicationStatusInternal = dsc.PendingStatus()
    		o.DeleteReplication.Targets = replicationStatusesMap(o.DeleteReplication.ReplicationStatusInternal)
    	default:
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  10. cmd/endpoint-ellipses.go

    }
    
    // buildDisksLayoutFromConfFile supports with and without ellipses transparently.
    func buildDisksLayoutFromConfFile(pools []poolArgs) (layout disksLayout, err error) {
    	if len(pools) == 0 {
    		return layout, errInvalidArgument
    	}
    
    	for _, list := range pools {
    		var endpointsList endpointsList
    
    		for _, arg := range list.args {
    			switch {
    			case ellipses.HasList(arg):
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 14.7K bytes
    - Click Count (0)
Back to Top