Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 2,255 for contains (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

      }
    
      /**
       * Returns {@code true} if {@code iterable} contains any element {@code o} for which {@code
       * Objects.equals(o, element)} would return {@code true}. Otherwise returns {@code false}, even in
       * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link
       * ClassCastException}.
       */
      public static boolean contains(Iterable<?> iterable, @Nullable Object element) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 43.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            // Test toString
            String result = fileInternalInfo.toString();
    
            // Verify string contains expected components
            assertNotNull(result);
            assertTrue(result.contains("SmbQueryFileInternalInfo"));
            assertTrue(result.contains("indexNumber="));
            assertTrue(result.contains(String.valueOf(expectedIndexNumber)));
        }
    
        @Test
        @DisplayName("Test toString with zero index number")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        assertTrue(rangeSet.encloses(Range.greaterThan(3)));
        assertFalse(rangeSet.encloses(Range.closedOpen(1, 5)));
    
        assertTrue(rangeSet.contains(3));
        assertTrue(rangeSet.contains(5));
        assertFalse(rangeSet.contains(0));
        assertFalse(rangeSet.contains(2));
    
        assertEquals(ImmutableRangeSet.of(Range.atMost(2)), rangeSet.complement());
      }
    
      public void testSingleBoundedAboveRange() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 25 16:19:30 GMT 2025
    - 21.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/curl/CurlRequestTest.java

            try {
                new CurlRequest(null, url);
                fail("Expected IllegalArgumentException");
            } catch (IllegalArgumentException e) {
                assertTrue(e.getMessage().contains("method must not be null"));
            }
        }
    
        @Test
        public void testSingleArgumentConstructor() {
            CurlRequest request = new CurlRequest(Method.POST);
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

            }
        }
    
        /**
         * Traverses classes contained in a Jar file.
         * <p>
         * If the specified Jar file has the extension <code>.war</code>, only entries whose path starts with the prefix <code>WEB-INF/classes</code> are traversed.
         * The handler receives the entry name excluding the prefix. For example, if the Jar file contains <code>/WEB-INF/classes/ccc/ddd/Eee.class</code>,
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

         *
         * @param array  the array to search through
         * @param valueToFind  the value to find
         * @return <code>true</code> if the array contains the object
         */
        public static boolean contains(char[] array, char valueToFind) {
            if (array == null) {
                return false;
            }
            for (char c : array) {
                if (valueToFind == c) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 38.4K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java

         *
         * @param array  the array to search through
         * @param valueToFind  the value to find
         * @return <code>true</code> if the array contains the object
         */
        public static boolean contains(char[] array, char valueToFind) {
            if (array == null) {
                return false;
            }
            for (char c : array) {
                if (valueToFind == c) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 09:03:48 GMT 2025
    - 38.5K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ImmutableMultiset.java

          this.delegate = delegate;
        }
    
        @Override
        E get(int index) {
          return entries.get(index).getElement();
        }
    
        @Override
        public boolean contains(@Nullable Object object) {
          return delegate.contains(object);
        }
    
        @Override
        boolean isPartialView() {
          return true;
        }
    
        @Override
        public int size() {
          return entries.size();
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  9. src/archive/tar/example_test.go

    )
    
    func Example_minimal() {
    	// Create and add some files to the archive.
    	var buf bytes.Buffer
    	tw := tar.NewWriter(&buf)
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    		{"todo.txt", "Get animal handling license."},
    	}
    	for _, file := range files {
    		hdr := &tar.Header{
    			Name: file.Name,
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertTrue("Heap contains 1", mmHeap.remove(1));
        assertFalse("Heap does not contain 1", mmHeap.contains(1));
        assertTrue("Heap contains 2", mmHeap.remove(2));
        assertEquals(0, mmHeap.size());
        assertFalse("Heap does not contain anything", mmHeap.contains(1));
        assertFalse("Heap does not contain anything", mmHeap.remove(2));
      }
    
      public void testIteratorPastEndException() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 36.2K bytes
    - Click Count (0)
Back to Top