Search Options

Results per page
Sort
Preferred Languages
Advance

Results 651 - 660 of 6,449 for _return (0.1 sec)

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

              public @Nullable Integer computeNext() {
                switch (rep++) {
                  case 0:
                    return 0;
                  case 1:
                    return 1;
                  case 2:
                    return endOfData();
                  default:
                    throw new AssertionError("Should not have been invoked again");
                }
              }
            };
    
        assertEquals(0, (int) iter.peek());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

              public @Nullable Integer computeNext() {
                switch (rep++) {
                  case 0:
                    return 0;
                  case 1:
                    return 1;
                  case 2:
                    return endOfData();
                  default:
                    throw new AssertionError("Should not have been invoked again");
                }
              }
            };
    
        assertEquals(0, (int) iter.peek());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. internal/bucket/replication/filter.go

    			return err
    		}
    	}
    	if f.Prefix != "" {
    		if !f.Tag.IsEmpty() {
    			return errInvalidFilter
    		}
    	}
    	if !f.Tag.IsEmpty() {
    		if err := f.Tag.Validate(); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // TestTags tests if the object tags satisfy the Filter tags requirement,
    // it returns true if there is no tags in the underlying Filter.
    func (f *Filter) TestTags(userTags string) bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 28 18:25:46 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java

        E[] array = createArrayWithNullElement();
        collection = getSubjectGenerator().create(array);
        assertFalse("add(nullPresent) should return false", getSet().add(null));
        expectContents(array);
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testAdd_supportedNullPresent()} so that tests
       * can suppress it. See {@link CollectionAddTester#getAddNullSupportedMethod()} for details.
       */
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. internal/event/rulesmap.go

    		}
    	}
    }
    
    // MatchSimple - returns true if matching object name and event name in rules map.
    func (rulesMap RulesMap) MatchSimple(eventName Name, objectName string) bool {
    	return rulesMap[eventName].MatchSimple(objectName)
    }
    
    // Match - returns TargetIDSet matching object name and event name in rules map.
    func (rulesMap RulesMap) Match(eventName Name, objectName string) TargetIDSet {
    	return rulesMap[eventName].Match(objectName)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  6. cmd/bucket-encryption-handlers.go

    		return
    	}
    
    	// Return error if KMS is not initialized
    	if GlobalKMS == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL)
    		return
    	}
    	kmsKey := encConfig.KeyID()
    	if kmsKey != "" {
    		kmsContext := kms.Context{"MinIO admin API": "ServerInfoHandler"} // Context for a test key operation
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. internal/event/arn.go

    	if err := d.DecodeElement(&s, &start); err != nil {
    		return err
    	}
    
    	parsedARN, err := parseARN(s)
    	if err != nil {
    		return err
    	}
    
    	*arn = *parsedARN
    	return nil
    }
    
    // parseARN - parses string to ARN.
    func parseARN(s string) (*ARN, error) {
    	// ARN must be in the format of arn:minio:sqs:<REGION>:<ID>:<TYPE>
    	if !strings.HasPrefix(s, "arn:minio:sqs:") {
    		return nil, &ErrInvalidARN{s}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. internal/http/transports.go

    	return func() *http.Transport {
    		return tr
    	}
    }
    
    // NewHTTPTransportWithTimeout allows setting a timeout for response headers
    func (s ConnSettings) NewHTTPTransportWithTimeout(timeout time.Duration) *http.Transport {
    	tr := s.getDefaultTransport(0)
    
    	// Settings specific to this transport.
    	tr.ResponseHeaderTimeout = timeout
    	return tr
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/thirdparty/publicsuffix/TrieParser.java

              idx++;
              break;
            }
          }
        }
    
        stack.pop();
        return idx - start;
      }
    
      private static CharSequence reverse(CharSequence s) {
        return new StringBuilder(s).reverse();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 13 19:20:43 UTC 2022
    - 4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        if (!(member instanceof Method)) {
          return false;
        }
        Method method = (Method) member;
        if (!method.getName().contentEquals("equals")) {
          return false;
        }
        Class<?>[] parameters = method.getParameterTypes();
        if (parameters.length != 1) {
          return false;
        }
        if (!parameters[0].equals(Object.class)) {
          return false;
        }
        return true;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top