Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 158 for empty (0.4 sec)

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

       * @throws NullPointerException if any element in the stream is {@code null}.
       * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be
       *     {@code null}) and returns {@code Optional.empty()} if it has none.
       */
      @SuppressWarnings("unchecked")
      public static <T> Collector<T, ?, Optional<T>> toOptional() {
        return (Collector) TO_OPTIONAL;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

    public final class Iterators {
      private Iterators() {}
    
      /**
       * Returns the empty iterator.
       *
       * <p>The {@link Iterable} equivalent of this method is {@link ImmutableSet#of()}.
       */
      static <T extends @Nullable Object> UnmodifiableIterator<T> emptyIterator() {
        return emptyListIterator();
      }
    
      /**
       * Returns the empty iterator.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

       *     // operate on tuple
       *   }
       * }
       * }</pre>
       *
       * <p>Note that if any input set is empty, the Cartesian product will also be empty. If no sets at
       * all are provided (an empty list), the resulting Cartesian product has one element, an empty
       * list (counter-intuitive, but mathematically consistent).
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                            EMPTY,
                            request);
                }
    
                validateRawRepositories(problems, m.getRepositories(), "repositories.repository.", EMPTY, request);
    
                validateRawRepositories(
                        problems, m.getPluginRepositories(), "pluginRepositories.pluginRepository.", EMPTY, request);
    
                Build build = m.getBuild();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      private static final ImmutableMap<Class<?>, Method> EMPTY_GENERATORS;
    
      static {
        ImmutableMap.Builder<Class<?>, Method> builder = ImmutableMap.builder();
        for (Method method : FreshValueGenerator.class.getDeclaredMethods()) {
          if (method.isAnnotationPresent(Empty.class)) {
            builder.put(method.getReturnType(), method);
          }
        }
        EMPTY_GENERATORS = builder.buildOrThrow();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/rule_test.go

    			expectedErr: errInvalidRuleID,
    		},
    		{ // Rule with empty ID
    			inputXML: `<Rule>
    							<ID></ID>
    							<Filter><Prefix></Prefix></Filter>
    							<Expiration>
    								<Days>365</Days>
    							</Expiration>
                                <Status>Enabled</Status>
    	                    </Rule>`,
    			expectedErr: nil,
    		},
    		{ // Rule with empty status
    			inputXML: ` <Rule>
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  7. cmd/sftp-server-driver.go

    		if bucket == "" {
    			return errors.New("bucket name cannot be empty")
    		}
    
    		return clnt.RemoveObject(context.Background(), bucket, object, minio.RemoveObjectOptions{})
    
    	case "Mkdir":
    		bucket, prefix := path2BucketObject(r.Filepath)
    		if bucket == "" {
    			return errors.New("bucket name cannot be empty")
    		}
    
    		if prefix == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

      }
    
      /**
       * Returns an empty immutable range map.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of() {
        return (ImmutableRangeMap<K, V>) EMPTY;
      }
    
      /** Returns an immutable range map mapping a single range to a single value. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  9. errors.go

    	// ErrRegistered registered
    	ErrRegistered = errors.New("registered")
    	// ErrInvalidField invalid field
    	ErrInvalidField = errors.New("invalid field")
    	// ErrEmptySlice empty slice found
    	ErrEmptySlice = errors.New("empty slice found")
    	// ErrDryRunModeUnsupported dry run mode unsupported
    	ErrDryRunModeUnsupported = errors.New("dry run mode unsupported")
    	// ErrInvalidDB invalid db
    	ErrInvalidDB = errors.New("invalid db")
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 02:53:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. cmd/tier.go

    	d, err := config.getDriver(ctx, tier)
    	if err != nil {
    		return err
    	}
    	return checkWarmBackend(ctx, d)
    }
    
    // Empty returns if tier targets are empty
    func (config *TierConfigMgr) Empty() bool {
    	if config == nil {
    		return true
    	}
    	return len(config.ListTiers()) == 0
    }
    
    // TierType returns the type of tier
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top