Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 636 for middle (0.04 seconds)

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

        while (lower <= upper) {
          int middle = (lower + upper) >>> 1;
          int c = comparator.compare(key, list.get(middle));
          if (c < 0) {
            upper = middle - 1;
          } else if (c > 0) {
            lower = middle + 1;
          } else {
            return lower
                + presentBehavior.resultIndex(
                    comparator, key, list.subList(lower, upper + 1), middle - lower);
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 10.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/SortedLists.java

        while (lower <= upper) {
          int middle = (lower + upper) >>> 1;
          int c = comparator.compare(key, list.get(middle));
          if (c < 0) {
            upper = middle - 1;
          } else if (c > 0) {
            lower = middle + 1;
          } else {
            return lower
                + presentBehavior.resultIndex(
                    comparator, key, list.subList(lower, upper + 1), middle - lower);
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 10.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/SmbTreeTest.java

            ExtendedSmbTree middle = smbTree.unwrap(ExtendedSmbTree.class);
            CustomSmbTree inner = middle.unwrap(CustomSmbTree.class);
    
            assertNotNull(middle, "Middle tree should not be null");
            assertNotNull(inner, "Inner tree should not be null");
            assertSame(middleTree, middle, "Should return correct middle tree");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/util/StringUtilTest.java

        void testJoinWithEmptyStringElements() {
            String result = StringUtil.join(",", "", "middle", "");
            // First element is empty string (sb becomes "")
            // Second: sb.length() is 0, no delimiter, append "middle" (sb becomes "middle")
            // Third: sb.length() > 0, add delimiter + "" (sb becomes "middle,")
            assertEquals("middle,", result);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 9K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

      private M multimap;
    
      protected M multimap() {
        return multimap;
      }
    
      /**
       * @return an array of the proper size with {@code null} as the key of the middle element.
       */
      protected Entry<K, V>[] createArrayWithNullKey() {
        Entry<K, V>[] array = createSamplesArray();
        int nullKeyLocation = getNullLocation();
        Entry<K, V> oldEntry = array[nullKeyLocation];
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java

            // Test constructor with nested exception causes
            Exception rootCause = new IllegalStateException("Root cause");
            Exception middleCause = new RuntimeException("Middle cause", rootCause);
            String message = "Top level dictionary error";
            DictionaryException exception = new DictionaryException(message, middleCause);
    
            assertNotNull(exception);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/exception/ScheduledJobExceptionTest.java

            Throwable middleCause = new IllegalStateException("Middle cause", rootCause);
            ScheduledJobException exception = new ScheduledJobException("Top level error", middleCause);
    
            assertEquals("Top level error", exception.getMessage());
            assertEquals(middleCause, exception.getCause());
            assertEquals("Middle cause", exception.getCause().getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        assertEquals("Should be able to peek() at middle element", "B", peekingIterator.peek());
        assertEquals(
            "Should be able to peek() middle element multiple times", "B", peekingIterator.peek());
        assertEquals(
            "next() should still return middle element after peeking", "B", peekingIterator.next());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

            void testToStringWithNestedExceptions() {
                Exception innermost = new IOException("Innermost exception");
                Exception middle = new RuntimeException("Middle exception", innermost);
                Exception rootCause = new IllegalStateException("Outer exception", middle);
                TransportException exception = new TransportException("Transport failed", rootCause);
    
                String result = exception.toString();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

        }
    
        /**
         * Test getMessageByDcerpcError() with a known error code (middle element).
         */
        @Test
        void testGetMessageByDcerpcError_middleElement() {
            String message = DcerpcException.getMessageByDcerpcError(DcerpcError.DCERPC_FAULT_INVALID_TAG);
            assertEquals("DCERPC_FAULT_INVALID_TAG", message, "Should return correct message for middle element.");
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top