Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 746 for isEmpty (0.04 sec)

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

      /** Returns {@code true} if this range set contains no ranges. */
      boolean isEmpty();
    
      /**
       * Returns the minimal range which {@linkplain Range#encloses(Range) encloses} all ranges in this
       * range set.
       *
       * @throws NoSuchElementException if this range set is {@linkplain #isEmpty() empty}
       */
      Range<C> span();
    
      // Views
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/AccessTokenHelperTest.java

            for (int i = 0; i < NUM; i++) {
                tokens.add(accessTokenHelper.generateAccessToken());
            }
            for (int i = 0; i < NUM; i++) {
                assertFalse(tokens.get(i).isEmpty());
                for (int j = i + 1; j < NUM; j++) {
                    assertFalse(tokens.get(i).equals(tokens.get(j)));
                }
            }
        }
    
        public void test_getAccessTokenFromRequest_ok0() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/InputValidator.java

            }
            if (username.length() > MAX_USERNAME_LENGTH) {
                throw new IllegalArgumentException("Username exceeds maximum length: " + username.length());
            }
            if (!username.isEmpty() && !VALID_USERNAME.matcher(username).matches()) {
                throw new IllegalArgumentException("Username contains invalid characters: " + username);
            }
        }
    
        /**
         * Validates domain name
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

        return Multisets.immutableEntry(elementSet.asList().get(index), getCount(index));
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        return isEmpty() ? null : getEntry(0);
      }
    
      @Override
      public @Nullable Entry<E> lastEntry() {
        return isEmpty() ? null : getEntry(length - 1);
      }
    
      @Override
      public int count(@Nullable Object element) {
        int index = elementSet.indexOf(element);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            // Then
            assertNotNull(exception.getContext());
            assertTrue(exception.getContext().isEmpty());
    
            // Adding null context should be safe
            exception.withContext(null);
            assertTrue(exception.getContext().isEmpty());
        }
    
        @Test
        @DisplayName("Should be serializable")
        void testSerialization() throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  6. api/maven-api-metadata/src/main/mdo/metadata.mdo

                            // never convert from legacy to new format if either source or target is legacy format
                            if ( !v.getSnapshotVersions().isEmpty() )
                            {
                                for ( SnapshotVersion sv : versioning.getSnapshotVersions() )
                                {
                                    String key = getSnapshotVersionKey( sv );
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed May 15 17:32:27 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                List<ArtifactRepository> requestRepositories, List<ArtifactRepository> pomRepositories) {
            List<ArtifactRepository> repositories = requestRepositories;
    
            if (pomRepositories != null && !pomRepositories.isEmpty()) {
                Map<String, ArtifactRepository> repos = new LinkedHashMap<>();
    
                for (ArtifactRepository repo : requestRepositories) {
                    if (!repos.containsKey(repo.getId())) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 26 10:49:22 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                .createTestSuite());
    
        return suite;
      }
    
      public void testCreation_noArgs() {
        Multiset<String> multiset = ImmutableMultiset.of();
        assertTrue(multiset.isEmpty());
      }
    
      public void testCreation_oneElement() {
        Multiset<String> multiset = ImmutableMultiset.of("a");
        assertEquals(HashMultiset.create(asList("a")), multiset);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/MoreObjects.java

        }
    
        private static boolean isEmpty(Object value) {
          // Put types estimated to be the most frequent first.
          if (value instanceof CharSequence) {
            return ((CharSequence) value).length() == 0;
          } else if (value instanceof Collection) {
            return ((Collection<?>) value).isEmpty();
          } else if (value instanceof Map) {
            return ((Map<?, ?>) value).isEmpty();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  10. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt

     * limitations under the License.
     */
    package okhttp3.zstd
    
    import assertk.assertThat
    import assertk.assertions.hasMessage
    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import com.squareup.zstd.okio.zstdCompress
    import java.io.IOException
    import kotlin.test.assertFailsWith
    import okhttp3.CompressionInterceptor
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (1)
Back to top