Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2771 - 2780 of 7,250 for return (0.07 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            public Lock get() {
              return new ReentrantLock(true);
            }
          };
    
      private static final Supplier<Semaphore> SEMAPHORE_SUPPLER =
          new Supplier<Semaphore>() {
            @Override
            public Semaphore get() {
              return new Semaphore(1, false);
            }
          };
    
      private static List<Striped<?>> weakImplementations() {
        return ImmutableList.<Striped<?>>builder()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            public Lock get() {
              return new ReentrantLock(true);
            }
          };
    
      private static final Supplier<Semaphore> SEMAPHORE_SUPPLER =
          new Supplier<Semaphore>() {
            @Override
            public Semaphore get() {
              return new Semaphore(1, false);
            }
          };
    
      private static List<Striped<?>> weakImplementations() {
        return ImmutableList.<Striped<?>>builder()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NtlmContext.java

            }
            ret += "]";
            return ret;
        }
    
        public boolean isEstablished() {
            return isEstablished;
        }
        public byte[] getServerChallenge()
        {
            return serverChallenge;
        }
        public byte[] getSigningKey()
        {
            return signingKey;
        }
        public String getNetbiosName()
        {
            return netbiosName;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComWriteAndX.java

        @Override
        protected int getBatchLimit ( Configuration cfg, byte cmd ) {
            if ( cmd == SMB_COM_READ_ANDX ) {
                return cfg.getBatchLimit("WriteAndX.ReadAndX");
            }
            if ( cmd == SMB_COM_CLOSE ) {
                return cfg.getBatchLimit("WriteAndX.Close");
            }
            return 0;
        }
    
    
        @Override
        protected int writeParameterWordsWireFormat ( byte[] dst, int dstIndex ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          for (String element : elements) {
            builder.add(element);
          }
          return builder.build();
        }
      }
    
      public static class BuilderAddAllListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
          return ImmutableList.<String>builder().addAll(asList(elements)).build();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

            }
    
            return active;
        }
    
        @Override
        public boolean presentInConfig(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationOS os = activation.getOs();
    
            return os != null;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. fastapi/datastructures.py

        app = FastAPI()
    
    
        @app.post("/files/")
        async def create_file(file: Annotated[bytes, File()]):
            return {"file_size": len(file)}
    
    
        @app.post("/uploadfile/")
        async def create_upload_file(file: UploadFile):
            return {"filename": file.filename}
        ```
        """
    
        file: Annotated[
            BinaryIO,
            Doc("The standard Python file object (non-async)."),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/fileauth/ApiAdminFileauthAction.java

                }
                return entity;
            }).orElseGet(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateInstance(GLOBAL));
                return null;
            });
    
            return asJson(new ApiUpdateResponse().id(fileAuth.getId()).created(true).status(Status.OK).result());
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileOutputStream.java

                        log.debug("File pointer is at " + this.fp);
                    }
                }
                return this.handle;
            }
    
            log.trace("File already open");
            return this.handle.acquire();
        }
    
    
        protected SmbTreeHandleImpl ensureTreeConnected () throws CIFSException {
            return this.file.ensureTreeConnected();
        }
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:14:04 UTC 2021
    - 11.9K bytes
    - Viewed (0)
  10. internal/store/queuestore_test.go

    	queueStore := NewQueueStore[TestItem](queueDir, limit, testItemExt)
    	if oErr := queueStore.Open(); oErr != nil {
    		return nil, oErr
    	}
    	return queueStore, nil
    }
    
    // Tear down queue store.
    func tearDownQueueStore() error {
    	return os.RemoveAll(queueDir)
    }
    
    // TestQueueStorePut - tests for store.Put
    func TestQueueStorePut(t *testing.T) {
    	defer func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top