Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 176 for getlist (0.05 sec)

  1. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("c", Iterables.getLast(sortedSet));
      }
    
      public void testGetLast_withDefault_singleton() {
        Iterable<String> iterable = singletonList("foo");
        assertEquals("foo", Iterables.getLast(iterable, "bar"));
      }
    
      public void testGetLast_withDefault_empty() {
        Iterable<String> iterable = emptyList();
        assertEquals("bar", Iterables.getLast(iterable, "bar"));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 45.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

       * consider using {@code collection.getLast()} instead.
       *
       * @return the last element of {@code iterable}
       * @throws NoSuchElementException if the iterable is empty
       */
      @ParametricNullness
      public static <T extends @Nullable Object> T getLast(Iterable<T> iterable) {
        // TODO(kevinb): Support a concurrently modified collection?
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 18:35:28 UTC 2025
    - 43.8K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                }
                if (link.startsWith("/")) {
                    redirect = ftpInfo.toUrl(file.getLink());
                } else if (link.startsWith("../")) {
                    redirect = ftpInfo.toChildUrl(file.getLink());
                } else {
                    redirect = ftpInfo.toChildUrl("../" + file.getLink());
                }
                if (!uri.equals(redirect)) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 40K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

        }
    
        @Test
        public void testGetAsList() {
            // Test with null
            List<String> nullList = SuggestUtil.getAsList(null);
            assertNotNull(nullList);
            assertEquals(0, nullList.size());
    
            // Test with String
            List<String> stringList = SuggestUtil.getAsList("test");
            assertNotNull(stringList);
            assertEquals(1, stringList.size());
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Iterables.java

       * consider using {@code collection.getLast()} instead.
       *
       * @return the last element of {@code iterable}
       * @throws NoSuchElementException if the iterable is empty
       */
      @ParametricNullness
      public static <T extends @Nullable Object> T getLast(Iterable<T> iterable) {
        // TODO(kevinb): Support a concurrently modified collection?
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/LinkedListMultimap.java

           * are off).
           */
          KeyList<K, V> keyList = requireNonNull(keyToKeyList.remove(node.getKey()));
          keyList.count = 0;
          modCount++;
        } else {
          // requireNonNull is safe (under the conditions listed in the comment in the branch above).
          KeyList<K, V> keyList = requireNonNull(keyToKeyList.get(node.getKey()));
          keyList.count--;
    
          if (node.previousSibling == null) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 27K bytes
    - Viewed (0)
  7. tests/test_ws_dependencies.py

    from fastapi import APIRouter, Depends, FastAPI, WebSocket
    from fastapi.testclient import TestClient
    
    
    def dependency_list() -> list[str]:
        return []
    
    
    DepList = Annotated[list[str], Depends(dependency_list)]
    
    
    def create_dependency(name: str):
        def fun(deps: DepList):
            deps.append(name)
    
        return Depends(fun)
    
    
    router = APIRouter(dependencies=[create_dependency("router")])
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertEquals("::1", HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost());
        // Non-bracketed non-IPv6 works fine.
        assertEquals("x", HostAndPort.fromString("x").requireBracketsForIPv6().getHost());
        assertEquals("x", HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost());
    
        // Non-bracketed IPv6 fails.
        assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertEquals("::1", HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost());
        // Non-bracketed non-IPv6 works fine.
        assertEquals("x", HostAndPort.fromString("x").requireBracketsForIPv6().getHost());
        assertEquals("x", HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost());
    
        // Non-bracketed IPv6 fails.
        assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/DfsReferralDataTest.java

        void testGetLink() {
            // Given
            String link = "/test/link";
            when(mockReferralData.getLink()).thenReturn(link);
    
            // When
            String result = mockReferralData.getLink();
    
            // Then
            assertEquals(link, result);
            verify(mockReferralData).getLink();
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top