Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 6,271 for _return (0.06 sec)

  1. android/guava/src/com/google/common/hash/Hashing.java

            ConcatenatedHashFunction other = (ConcatenatedHashFunction) object;
            return Arrays.equals(functions, other.functions);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return Arrays.hashCode(functions);
        }
      }
    
      /**
       * Linear CongruentialGenerator to use for consistent hashing. See
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/rule.go

    	return r.Expiration.Validate()
    }
    
    func (r Rule) validateNoncurrentExpiration() error {
    	return r.NoncurrentVersionExpiration.Validate()
    }
    
    func (r Rule) validatePrefixAndFilter() error {
    	if !r.Prefix.set && r.Filter.IsEmpty() || r.Prefix.set && !r.Filter.IsEmpty() {
    		return errXMLNotWellFormed
    	}
    	if !r.Prefix.set {
    		return r.Filter.Validate()
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. internal/config/notify/parse.go

    				return nil, err
    			}
    			targets = append(targets, t)
    		}
    	case config.NotifyESSubSys:
    		esTargets, err := GetNotifyES(cfg[config.NotifyESSubSys], transport)
    		if err != nil {
    			return nil, err
    		}
    		for id, args := range esTargets {
    			if !args.Enable {
    				continue
    			}
    			t, err := target.NewElasticsearchTarget(id, args, logOnceIf)
    			if err != nil {
    				return nil, err
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 47K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Ints.java

       * @param target a primitive {@code int} value
       * @return {@code true} if {@code array[i] == target} for some value of {@code i}
       */
      public static boolean contains(int[] array, int target) {
        for (int value : array) {
          if (value == target) {
            return true;
          }
        }
        return false;
      }
    
      /**
       * Returns the index of the first appearance of the value {@code target} in {@code array}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  5. cmd/bucket-metadata-sys.go

    	if err != nil {
    		if errors.Is(err, errConfigNotFound) {
    			return nil, time.Time{}, BucketPolicyNotFound{Bucket: bucket}
    		}
    		return nil, time.Time{}, err
    	}
    	if meta.policyConfig == nil {
    		return nil, time.Time{}, BucketPolicyNotFound{Bucket: bucket}
    	}
    	return meta.policyConfig, meta.PolicyConfigUpdatedAt, nil
    }
    
    // GetTaggingConfig returns configured tagging config
    // The returned object may not be modified.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. internal/crypto/sse-s3.go

    	if h.Get(xhttp.AmzServerSideEncryption) != xhttp.AmzEncryptionAES {
    		return ErrInvalidEncryptionMethod
    	}
    	return nil
    }
    
    // IsEncrypted returns true if the object metadata indicates
    // that the object was uploaded using SSE-S3.
    func (sses3) IsEncrypted(metadata map[string]string) bool {
    	if _, ok := metadata[MetaSealedKeyS3]; ok {
    		return true
    	}
    	return false
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle.go

    					DeleteAction, DeleteVersionAction:
    					return -1
    				}
    				switch b.Action {
    				case DeleteAllVersionsAction, DelMarkerDeleteAllVersionsAction,
    					DeleteAction, DeleteVersionAction:
    					return 1
    				}
    				return -1
    			}
    
    			// Prefer earlier occurring event
    			if a.Due.Before(b.Due) {
    				return -1
    			}
    			return 1
    		})
    		return events[0]
    	}
    
    	return Event{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. cmd/os_other.go

    				// filtering requested to return by caller.
    				return nil
    			}
    		}
    	}
    	return nil
    }
    
    // Return entries at the directory dirPath.
    func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err error) {
    	d, err := Open(dirPath)
    	if err != nil {
    		return nil, osErrToFileErr(err)
    	}
    	defer d.Close()
    
    	maxEntries := 1000
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 13 15:14:36 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. cmd/bitrot.go

    		return hh
    	default:
    		logger.CriticalIf(GlobalContext, errors.New("Unsupported bitrot algorithm"))
    		return nil
    	}
    }
    
    // Available reports whether the given algorithm is available.
    func (a BitrotAlgorithm) Available() bool {
    	_, ok := bitrotAlgorithms[a]
    	return ok
    }
    
    // String returns the string identifier for a given bitrot algorithm.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/Stats.java

        return Collector.of(
            StatsAccumulator::new,
            (a, x) -> a.add(x.doubleValue()),
            (l, r) -> {
              l.addAll(r);
              return l;
            },
            StatsAccumulator::snapshot,
            Collector.Characteristics.UNORDERED);
      }
    
      /** Returns the number of values. */
      public long count() {
        return count;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top