Search Options

Results per page
Sort
Preferred Languages
Advance

Results 791 - 800 of 836 for IsEmpty (0.16 sec)

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

        Iterator<String> cycle = Iterators.cycle(iterable);
        assertTrue(cycle.hasNext());
        assertEquals("a", cycle.next());
        assertTrue(cycle.hasNext());
        cycle.remove();
        assertTrue(iterable.elements.isEmpty());
        assertFalse(cycle.hasNext());
      }
    
      public void testCycleNoSuchElementException() {
        Iterable<String> iterable = Lists.newArrayList("a");
        Iterator<String> cycle = Iterators.cycle(iterable);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

       *     all other requests.
       */
      @Throws(IOException::class)
      fun takeHeaders(callerIsIdle: Boolean = false): Headers {
        this.withLock {
          while (headersQueue.isEmpty() && errorCode == null) {
            val doReadTimeout = callerIsIdle || doReadTimeout()
            if (doReadTimeout) {
              readTimeout.enter()
            }
            try {
              waitForIo()
            } finally {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList<String> result = builder.build();
    
        /*
         * Maybe it rejects all elements, or maybe it adds "a" before failing.
         * Either way is fine with us.
         */
        if (result.isEmpty()) {
          return;
        }
        assertTrue(ImmutableList.of("a").equals(result));
        assertEquals(1, result.size());
      }
    
      public void testBuilderAddCollectionHandlesNulls() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/ArrayMap.java

            this((int) (map.size() / LOAD_FACTOR) + 1);
            putAll(map);
        }
    
        @Override
        public int size() {
            return size;
        }
    
        @Override
        public boolean isEmpty() {
            return size == 0;
        }
    
        @Override
        public boolean containsValue(final Object value) {
            return indexOf(value) >= 0;
        }
    
        /**
         * 値に対するインデックスを返します。
         *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

              delta = peerInitialWindowSize - previousPeerSettings.initialWindowSize.toLong()
              streamsToNotify =
                when {
                  delta == 0L || streams.isEmpty() -> null // No adjustment is necessary.
                  else -> streams.values.toTypedArray()
                }
    
              peerSettings = newPeerSettings
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  6. api/maven-api-settings/src/main/mdo/settings.mdo

         */
        public synchronized Proxy getActiveProxy() {
            if (activeProxy == null) {
                java.util.List<Proxy> proxies = getProxies();
                if (proxies != null && !proxies.isEmpty()) {
                    for (Proxy proxy : proxies) {
                        if (proxy.isActive()) {
                            activeProxy = proxy;
                            break;
                        }
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Oct 08 13:46:42 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

                                            version = versionRange.matchVersion(versions);
    
                                            if (version == null) {
                                                if (versions.isEmpty()) {
                                                    throw new OverConstrainedVersionException(
                                                            "No versions are present in the repository for the artifact"
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java

                final String nonce = (String) claimsSet.getClaim("nonce");
                if (logger.isDebugEnabled()) {
                    logger.debug("nonce: {}", nonce);
                }
                if (StringUtils.isEmpty(nonce) || !nonce.equals(stateData.getNonce())) {
                    throw new SsoLoginException("could not validate nonce");
                }
            } catch (final SsoLoginException e) {
                throw e;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          if (pairEqualsSign == cookiePairEnd) return null
    
          val cookieName = setCookie.trimSubstring(endIndex = pairEqualsSign)
          if (cookieName.isEmpty() || cookieName.indexOfControlOrNonAscii() != -1) return null
    
          val cookieValue = setCookie.trimSubstring(pairEqualsSign + 1, cookiePairEnd)
          if (cookieValue.indexOfControlOrNonAscii() != -1) return null
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Ints.java

          this.array = array;
          this.start = start;
          this.end = end;
        }
    
        @Override
        public int size() {
          return end - start;
        }
    
        @Override
        public boolean isEmpty() {
          return false;
        }
    
        @Override
        public Integer get(int index) {
          checkElementIndex(index, size());
          return array[start + index];
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top