Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 432 for mant (0.02 sec)

  1. guava-tests/test/com/google/common/base/StringsTest.java

      public void testRepeat_null() {
        assertThrows(NullPointerException.class, () -> Strings.repeat(null, 5));
      }
    
      @SuppressWarnings("UnnecessaryStringBuilder") // We want to test a non-String CharSequence
      public void testCommonPrefix() {
        assertEquals("", Strings.commonPrefix("", ""));
        assertEquals("", Strings.commonPrefix("abc", ""));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

         */
        if (throwable instanceof Error) {
          /*
           * TODO(cpovirk): Do we really want to log this if we called setException(throwable) and it
           * returned true? This was intentional (CL 46470009), but it seems odd compared to how we
           * normally handle Error.
           *
           * Similarly, do we really want to log the same Error more than once?
           */
          log(throwable);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/custom-response.md

    For example, let's say that you want to use <a href="https://github.com/ijl/orjson" class="external-link" target="_blank">`orjson`</a>, but with some custom settings not used in the included `ORJSONResponse` class.
    
    Let's say you want it to return indented and formatted JSON, so you want to use the orjson option `orjson.OPT_INDENT_2`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/ArtifactRepositoryMetadata.java

            return artifact.getGroupId();
        }
    
        public String getArtifactId() {
            return artifact.getArtifactId();
        }
    
        public String getBaseVersion() {
            // Don't want the artifact's version in here, as this is stored in the directory above that
            return null;
        }
    
        public Object getKey() {
            return "artifact " + artifact.getGroupId() + ":" + artifact.getArtifactId();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimaps.java

       * {@code Set}.
       *
       * <p>The function is applied lazily, invoked when needed. This is necessary for the returned
       * multimap to be a view, but it means that the function will be applied many times for bulk
       * operations like {@link Multimap#containsValue} and {@code Multimap.toString()}. For this to
       * perform well, {@code function} should be fast. To avoid lazy evaluation when the returned
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

        policy: AddressPolicy,
      ) {
        delegate.setPolicy(address, policy)
      }
    
      /**
       * A policy for how the pool should treat a specific address.
       */
      class AddressPolicy(
        /**
         * How many concurrent calls should be possible to make at any time.
         * The pool will routinely try to pre-emptively open connections to satisfy this minimum.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 20:39:41 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

      private static final String NONALPHA = "0123456789`~-_=+[]{}|;:',.<>/?!@#$%^&*()\"\\";
    
      @Param({"20", "2000"})
      int size;
    
      @Param({"2", "20"})
      int nonAlphaRatio; // one non-alpha char per this many chars
    
      @Param boolean noWorkToDo;
    
      Random random;
      String testString;
    
      @BeforeExperiment
      void setUp() {
        random = new Random(0xdeadbeef); // fix the seed so results are comparable across runs
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/PredecessorsFunction.java

    import com.google.errorprone.annotations.DoNotMock;
    
    /**
     * A functional interface for <a
     * href="https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)">graph</a>-structured data.
     *
     * <p>This interface is meant to be used as the type of a parameter to graph algorithms (such as
     * topological sort) that only need a way of accessing the predecessors of a node in a graph.
     *
     * <h3>Usage</h3>
     *
     * Given an algorithm, for example:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  9. internal/config/storageclass/storage-class_test.go

    	tests := []struct {
    		sc   string
    		want bool
    	}{
    		{"STANDARD", true},
    		{"REDUCED_REDUNDANCY", true},
    		{"", false},
    		{"INVALID", false},
    		{"123", false},
    		{"MINIO_STORAGE_CLASS_RRS", false},
    		{"MINIO_STORAGE_CLASS_STANDARD", false},
    	}
    	for i, tt := range tests {
    		if got := IsValid(tt.sc); got != tt.want {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * the permits issued each second steadily increases until it hits the stable rate.
     *
     * <p>As an example, imagine that we have a list of tasks to execute, but we don't want to submit
     * more than 2 per second:
     *
     * <pre>{@code
     * final RateLimiter rateLimiter = RateLimiter.create(2.0); // rate is "2 permits per second"
     * void submitTasks(List<Runnable> tasks, Executor executor) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top