Search Options

Results per page
Sort
Preferred Languages
Advance

Results 501 - 510 of 1,494 for case1 (0.04 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumSet.java

    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumSet<E> extends ForwardingImmutableSet<E> {
      static <E> ImmutableSet<E> asImmutable(Set<E> delegate) {
        switch (delegate.size()) {
          case 0:
            return ImmutableSet.of();
          case 1:
            return ImmutableSet.of(Iterables.getOnlyElement(delegate));
          default:
            return new ImmutableEnumSet<E>(delegate);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/NullnessCasts.java

       * analysis that that means "plain {@code T}" rather than the inferred type {@code @Nullable T}.
       * (Even if supported added {@code @NonNull}, that would not help, since the problem case
       * addressed by this method is the case in which {@code T} has parametric nullness -- and thus its
       * value may be legitimately {@code null}.)
       */
      @ParametricNullness
      @SuppressWarnings("nullness")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 17 15:44:29 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorUtils.java

            switch (artifactRepositoryPolicy) {
                case RepositoryPolicy.CHECKSUM_POLICY_FAIL:
                    return RepositoryPolicy.CHECKSUM_POLICY_FAIL;
                case RepositoryPolicy.CHECKSUM_POLICY_IGNORE:
                    return RepositoryPolicy.CHECKSUM_POLICY_IGNORE;
                case RepositoryPolicy.CHECKSUM_POLICY_WARN:
                    return RepositoryPolicy.CHECKSUM_POLICY_WARN;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. cmd/api-utils.go

    		copy(t, s)
    		for i := 0; i < len(s); i++ {
    			if s[i] == ' ' {
    				t[i] = '+'
    			}
    		}
    		return string(t)
    	}
    
    	j := 0
    	for i := 0; i < len(s); i++ {
    		switch c := s[i]; {
    		case c == ' ':
    			t[j] = '+'
    			j++
    		case shouldEscape(c):
    			t[j] = '%'
    			t[j+1] = "0123456789ABCDEF"[c>>4]
    			t[j+2] = "0123456789ABCDEF"[c&15]
    			j += 3
    		default:
    			t[j] = s[i]
    			j++
    		}
    	}
    	return string(t)
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 04 18:05:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. internal/bucket/object/lock/lock_test.go

    		//nolint:gocritic
    		if tt.expectedErr == nil {
    			if err != nil {
    				t.Fatalf("Case %d error: expected = <nil>, got = %v", i, err)
    			}
    		} else if err == nil {
    			t.Fatalf("Case %d error: expected = %v, got = <nil>", i, tt.expectedErr)
    		} else if tt.expectedErr.Error() != err.Error() {
    			t.Fatalf("Case %d error: expected = %v, got = %v", i, tt.expectedErr, err)
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. chainable_api.go

    	tx = db.getInstance()
    
    	switch v := query.(type) {
    	case []string:
    		tx.Statement.Selects = v
    
    		for _, arg := range args {
    			switch arg := arg.(type) {
    			case string:
    				tx.Statement.Selects = append(tx.Statement.Selects, arg)
    			case []string:
    				tx.Statement.Selects = append(tx.Statement.Selects, arg...)
    			default:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. internal/bucket/object/lock/lock.go

    )
    
    // Valid - returns if retention mode is valid
    func (r RetMode) Valid() bool {
    	switch r {
    	case RetGovernance, RetCompliance:
    		return true
    	}
    	return false
    }
    
    func parseRetMode(modeStr string) (mode RetMode) {
    	switch strings.ToUpper(modeStr) {
    	case "GOVERNANCE":
    		mode = RetGovernance
    	case "COMPLIANCE":
    		mode = RetCompliance
    	}
    	return mode
    }
    
    // LegalHoldStatus - object legal hold status.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/HashCode.java

      }
    
      /**
       * Creates a {@code HashCode} from a hexadecimal ({@code base 16}) encoded string. The string must
       * be at least 2 characters long, and contain only valid, lower-cased hexadecimal characters.
       *
       * <p>This method accepts the exact format generated by {@link #toString}. If you require more
       * lenient {@code base 16} decoding, please use {@link com.google.common.io.BaseEncoding#decode}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:54:59 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/endtoend_test.go

    		switch len(parts) {
    		default:
    			t.Errorf("%s:%d: unable to understand comments: %s", input, lineno, line)
    		case 1:
    			// no comment
    		case 2:
    			// might be printed form or hex
    			note := strings.TrimSpace(parts[1])
    			if isHexes(note) {
    				hexes = note
    			} else {
    				printed = note
    			}
    		case 3:
    			// printed form, then hex
    			printed = strings.TrimSpace(parts[1])
    			hexes = strings.TrimSpace(parts[2])
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Dec 07 18:42:59 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  10. internal/kms/secret-key.go

    	var aead cipher.AEAD
    	switch keyType {
    	case kms.AES256:
    		mac := hmac.New(sha256.New, s.key)
    		mac.Write(iv)
    		sealingKey := mac.Sum(nil)
    
    		block, err := aes.NewCipher(sealingKey)
    		if err != nil {
    			return nil, err
    		}
    		aead, err = cipher.NewGCM(block)
    		if err != nil {
    			return nil, err
    		}
    	case kms.ChaCha20:
    		sealingKey, err := chacha20.HChaCha20(s.key, iv)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top