Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 1,656 for First (0.02 seconds)

  1. guava/src/com/google/common/collect/ImmutableList.java

        // We special-case for 0 or 1 elements, but going further is madness.
        if (!elements.hasNext()) {
          return of();
        }
        E first = elements.next();
        if (!elements.hasNext()) {
          return of(first);
        } else {
          return new ImmutableList.Builder<E>().add(first).addAll(elements).build();
        }
      }
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 30.6K bytes
    - Click Count (0)
  2. tests/sql_builder_test.go

    	stmt := newDB.First(&result).Statement
    	str := stmt.SQL.String()
    
    	if !strings.Contains(str, "rgs.id = user.id") {
    		t.Errorf("The second join condition is over written instead of combining")
    	}
    
    	if !strings.Contains(str, "`users`.`company_id` = `companies`.`id`") && !strings.Contains(str, "\"users\".\"company_id\" = \"companies\".\"id\"") {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java

                pb.redirectErrorStream(true);
            };
    
            try {
                // Start first process
                JobProcess jobProcess1 = processHelper.startProcess(sessionId, cmdList1, pbCall);
                assertNotNull(jobProcess1);
    
                // Wait for first process to be running
                Thread.sleep(100);
                assertTrue(processHelper.isProcessRunning(sessionId));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 16K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbFile.java

         * @param th the tree handle
         * @param first the first request to execute
         * @param others additional requests to chain
         * @return the response from the first request
         * @throws CIFSException if an error occurs
         */
        protected <T extends ServerMessageBlock2Response> T withOpen(final SmbTreeHandleImpl th, final ServerMessageBlock2Request<T> first,
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertThat(FluentIterable.from(list).first()).hasValue("a");
      }
    
      public void testFirst_null() {
        List<String> list = Lists.newArrayList(null, "a", "b");
        assertThrows(NullPointerException.class, () -> FluentIterable.from(list).first());
      }
    
      public void testFirst_emptyList() {
        List<String> list = emptyList();
        assertThat(FluentIterable.from(list).first()).isAbsent();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

            assertEquals("First group should be TestGroup", TestGroup.class, multiAnnotation.groups()[0]);
            assertEquals("Second group should be AnotherTestGroup", AnotherTestGroup.class, multiAnnotation.groups()[1]);
    
            assertEquals("Should have 2 payloads", 2, multiAnnotation.payload().length);
            assertEquals("First payload should be TestPayload", TestPayload.class, multiAnnotation.payload()[0]);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeError2() {
        FluentIterable<? extends Number> numbers = getSomeNumbers();
        Optional<? extends Number> first = numbers.first();
        // Number value = first.or(0.5); // error
      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeFine1() {
        Optional<Number> optionalInt = Optional.of((Number) 1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/io/FilesTest.java

      private static File file(String first, String... more) {
        return file(new File(first), more);
      }
    
      /** Returns a {@code File} object for the given path parts. */
      private static File file(File first, String... more) {
        // not very efficient, but should definitely be correct
        File file = first;
        for (String name : more) {
          file = new File(file, name);
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  9. src/main/java/jcifs/util/InputValidator.java

                throw new IllegalArgumentException("Share name contains invalid characters: " + share);
            }
        }
    
        /**
         * Validates integer for safe arithmetic operations
         *
         * @param a first operand
         * @param b second operand
         * @param operation the operation name
         * @throws ArithmeticException if operation would overflow
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                DfsReferralDataImpl first = createInitializedDfsReferralDataImpl();
                DfsReferralDataImpl second = createInitializedDfsReferralDataImpl();
    
                // Set intermediate flag on first
                first.intermediate();
                assertTrue(first.isIntermediate());
    
                // Combine
                DfsReferralDataInternal combined = first.combine(second);
                assertNotNull(combined);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 28.2K bytes
    - Click Count (0)
Back to Top