Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for getLast (0.22 sec)

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

        assertEquals("c", Iterables.getLast(sortedSet));
      }
    
      public void testGetLast_withDefault_singleton() {
        Iterable<String> iterable = Collections.singletonList("foo");
        assertEquals("foo", Iterables.getLast(iterable, "bar"));
      }
    
      public void testGetLast_withDefault_empty() {
        Iterable<String> iterable = Collections.emptyList();
        assertEquals("bar", Iterables.getLast(iterable, "bar"));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("c", Iterables.getLast(sortedSet));
      }
    
      public void testGetLast_withDefault_singleton() {
        Iterable<String> iterable = Collections.singletonList("foo");
        assertEquals("foo", Iterables.getLast(iterable, "bar"));
      }
    
      public void testGetLast_withDefault_empty() {
        Iterable<String> iterable = Collections.emptyList();
        assertEquals("bar", Iterables.getLast(iterable, "bar"));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java

            });
        }
    
        public List<CrawlingInfoParam> getLastCrawlingInfoParamList(final String sessionId) {
            final CrawlingInfo crawlingInfo = getLast(sessionId);
            if (crawlingInfo == null) {
                return Collections.emptyList();
            }
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

            }
            return sessionId;
        }
    
        public synchronized void store(final String sessionId, final boolean create) {
            CrawlingInfo crawlingInfo = create ? null : getCrawlingInfoService().getLast(sessionId);
            if (crawlingInfo == null) {
                crawlingInfo = new CrawlingInfo(sessionId);
                try {
                    getCrawlingInfoService().store(crawlingInfo);
                } catch (final Exception e) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.6K bytes
    - Viewed (1)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

          service.awaitRunning();
          assertNotSame(State.STARTING, service.state());
        }
    
        @Override
        public synchronized void stopping(State from) {
          assertEquals(from, Iterables.getLast(stateHistory));
          stateHistory.add(State.STOPPING);
          if (from == State.STARTING) {
            try {
              service.awaitRunning();
              fail();
            } catch (IllegalStateException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

          service.awaitRunning();
          assertNotSame(State.STARTING, service.state());
        }
    
        @Override
        public synchronized void stopping(State from) {
          assertEquals(from, Iterables.getLast(stateHistory));
          stateHistory.add(State.STOPPING);
          if (from == State.STARTING) {
            try {
              service.awaitRunning();
              fail();
            } catch (IllegalStateException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/SLinkedList.java

                throw new NoSuchElementException();
            }
            return getFirstEntry().element;
        }
    
        /**
         * 最後の要素を返します。
         *
         * @return 最後の要素
         */
        public E getLast() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
            return getLastEntry().element;
        }
    
        /**
         * 最初のエントリを返します。
         *
         * @return 最初のエントリ
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11K bytes
    - Viewed (1)
  8. guava/src/com/google/common/collect/Iterables.java

      public static <T extends @Nullable Object> T getLast(Iterable<T> iterable) {
        // TODO(kevinb): Support a concurrently modified collection?
        if (iterable instanceof List) {
          List<T> list = (List<T>) iterable;
          if (list.isEmpty()) {
            throw new NoSuchElementException();
          }
          return getLastInNonemptyList(list);
        }
    
        return Iterators.getLast(iterable.iterator());
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterables.java

      public static <T extends @Nullable Object> T getLast(Iterable<T> iterable) {
        // TODO(kevinb): Support a concurrently modified collection?
        if (iterable instanceof List) {
          List<T> list = (List<T>) iterable;
          if (list.isEmpty()) {
            throw new NoSuchElementException();
          }
          return getLastInNonemptyList(list);
        }
    
        return Iterators.getLast(iterable.iterator());
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * @throws NullPointerException if the last element is null; if this is a possibility, use {@link
       *     Iterables#getLast} instead.
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
      public final Optional<@NonNull E> last() {
        // Iterables#getLast was inlined here so we don't have to throw/catch a NSEE
    
        // TODO(kevinb): Support a concurrently modified collection?
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
Back to top