Search Options

Results per page
Sort
Preferred Languages
Advance

Results 801 - 810 of 836 for isEmpty (0.22 sec)

  1. android/guava/src/com/google/common/collect/Streams.java

          }
        }
        OptionalState state = new OptionalState();
    
        Deque<Spliterator<T>> splits = new ArrayDeque<>();
        splits.addLast(stream.spliterator());
    
        while (!splits.isEmpty()) {
          Spliterator<T> spliterator = splits.removeLast();
    
          if (spliterator.getExactSizeIfKnown() == 0) {
            continue; // drop this split
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

     */
    @file:Suppress("ktlint:standard:filename")
    
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.contains
    import assertk.assertions.containsExactly
    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isGreaterThanOrEqualTo
    import assertk.assertions.isIn
    import assertk.assertions.isInstanceOf
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbSessionImpl.java

         */
        @Override
        public void treeConnectLogon () throws SmbException {
            String logonShare = getContext().getConfig().getLogonShare();
            if ( logonShare == null || logonShare.isEmpty() ) {
                throw new SmbException("Logon share is not defined");
            }
            try ( SmbTreeImpl t = getSmbTree(logonShare, null) ) {
                t.treeConnect(null, null);
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            afe.initCause(e);
            throw afe;
          }
        }
      }
    
      void checkEmpty(BlockingQueue<?> q) {
        try {
          assertTrue(q.isEmpty());
          assertEquals(0, q.size());
          assertNull(q.peek());
          assertNull(q.poll());
          assertNull(q.poll(0, MILLISECONDS));
          assertEquals("[]", q.toString());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/ClassPath.java

            return CharMatcher.inRange('0', '9').trimLeadingFrom(innerClassName);
          }
          String packageName = getPackageName();
          if (packageName.isEmpty()) {
            return className;
          }
    
          // Since this is a top level class, its simple name is always the part after package name.
          return className.substring(packageName.length() + 1);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return pickInstance(Arrays.asList(instances), defaultValue);
      }
    
      private <T> T pickInstance(Collection<T> instances, T defaultValue) {
        if (instances.isEmpty()) {
          return defaultValue;
        }
        // generateInt() is 1-based.
        return Iterables.get(instances, (generateInt() - 1) % instances.size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedSet.java

        Comparator<? super E> comparator = SortedIterables.comparator(sortedSet);
        ImmutableList<E> list = ImmutableList.copyOf(sortedSet);
        if (list.isEmpty()) {
          return emptySet(comparator);
        } else {
          return new RegularImmutableSortedSet<>(list, comparator);
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return pickInstance(Arrays.asList(instances), defaultValue);
      }
    
      private <T> T pickInstance(Collection<T> instances, T defaultValue) {
        if (instances.isEmpty()) {
          return defaultValue;
        }
        // generateInt() is 1-based.
        return Iterables.get(instances, (generateInt() - 1) % instances.size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CacheTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isCloseTo
    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.isTrue
    import java.io.IOException
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Chars.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 Character get(int index) {
          checkElementIndex(index, size());
          return array[start + index];
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top