Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for nonempty (0.16 sec)

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

        assertEquals(String[].class, empty.getClass());
        assertThat(empty).isEmpty();
      }
    
      @GwtIncompatible // ObjectArrays.newArray(Class, int)
      public void testNewArray_fromClass_Nonempty() {
        String[] array = ObjectArrays.newArray(String.class, 2);
        assertEquals(String[].class, array.getClass());
        assertThat(array).hasLength(2);
        assertNull(array[0]);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ObjectArraysTest.java

        assertEquals(String[].class, empty.getClass());
        assertThat(empty).isEmpty();
      }
    
      @GwtIncompatible // ObjectArrays.newArray(Class, int)
      public void testNewArray_fromClass_Nonempty() {
        String[] array = ObjectArrays.newArray(String.class, 2);
        assertEquals(String[].class, array.getClass());
        assertThat(array).hasLength(2);
        assertNull(array[0]);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/SignedBytes.java

      public static int compare(byte a, byte b) {
        return a - b; // safe due to restricted range
      }
    
      /**
       * Returns the least value present in {@code array}.
       *
       * @param array a <i>nonempty</i> array of {@code byte} values
       * @return the value present in {@code array} that is less than or equal to every other value in
       *     the array
       * @throws IllegalArgumentException if {@code array} is empty
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 7.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RangeMap.java

    import java.util.Collection;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.NoSuchElementException;
    import javax.annotation.CheckForNull;
    
    /**
     * A mapping from disjoint nonempty ranges to non-null values. Queries look up the value associated
     * with the range (if any) that contains a specified key.
     *
     * <p>In contrast to {@link RangeSet}, no "coalescing" is done of {@linkplain
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractMultimap.java

      @Override
      public boolean putAll(@ParametricNullness K key, Iterable<? extends V> values) {
        checkNotNull(values);
        // make sure we only call values.iterator() once
        // and we only call get(key) if values is nonempty
        if (values instanceof Collection) {
          Collection<? extends V> valueCollection = (Collection<? extends V>) values;
          return !valueCollection.isEmpty() && get(key).addAll(valueCollection);
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 6.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

         * in O(n) time stepping through the two collections.
         */
        Iterator<E> thisIterator = iterator();
    
        Iterator<?> thatIterator = targets.iterator();
        // known nonempty since we checked targets.size() > 1
    
        if (!thisIterator.hasNext()) {
          return false;
        }
    
        Object target = thatIterator.next();
        E current = thisIterator.next();
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractMultimap.java

      @Override
      public boolean putAll(@ParametricNullness K key, Iterable<? extends V> values) {
        checkNotNull(values);
        // make sure we only call values.iterator() once
        // and we only call get(key) if values is nonempty
        if (values instanceof Collection) {
          Collection<? extends V> valueCollection = (Collection<? extends V>) values;
          return !valueCollection.isEmpty() && get(key).addAll(valueCollection);
        } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/project/harness/PomTestWrapper.java

            context.setValue(expression, value);
        }
    
        /*
        public int containerCountForUri( String uri )
            throws IOException
        {
            Validate.notEmpty( uri, "uri can neither be null nor empty " );
            ModelDataSource source = new DefaultModelDataSource();
            source.init( domainModel.getModelProperties(), null );
            return source.queryFor( uri ).size();
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/KtFirStarImportingScope.kt

                } else { //member
                    val classId = import.resolvedClassId ?: error("Class id should not be null as relativeClassName is not null")
                    firScope.getStaticsScope(classId)?.getCallableNames().orEmpty()
                }
            }
        }
    
        override fun getPackageSymbols(nameFilter: KtScopeNameFilter): Sequence<KtPackageSymbol> = withValidityAssertion {
            emptySequence()
        }
    
    Plain Text
    - Registered: Fri Mar 22 08:18:09 GMT 2024
    - Last Modified: Fri May 19 11:53:16 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  10. cmd/xl-storage-errors_test.go

    	if !ok {
    		t.Fatalf("Unexpected error expecting %s", syscall.ENOTDIR)
    	}
    	if runtime.GOOS != globalWindowsOSName {
    		pathErr = &os.PathError{Err: syscall.ENOTEMPTY}
    		ok = isSysErrNotEmpty(pathErr)
    		if !ok {
    			t.Fatalf("Unexpected error expecting %s", syscall.ENOTEMPTY)
    		}
    	} else {
    		pathErr = &os.PathError{Err: syscall.Errno(0x91)}
    		ok = isSysErrNotEmpty(pathErr)
    		if !ok {
    			t.Fatal("Unexpected error expecting 0x91")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.7K bytes
    - Viewed (0)
Back to top