Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1991 - 2000 of 2,145 for else_ (0.03 sec)

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

      static <E> ImmutableSortedSet<E> emptySet(Comparator<? super E> comparator) {
        checkNotNull(comparator);
        if (NATURAL_ORDER.equals(comparator)) {
          return of();
        } else {
          return new RegularImmutableSortedSet<E>(new TreeSet<E>(comparator), false);
        }
      }
    
      public static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractBiMap.java

        checkValue(value);
        boolean containedKey = containsKey(key);
        if (containedKey && Objects.equal(value, get(key))) {
          return value;
        }
        if (force) {
          inverse().remove(value);
        } else {
          checkArgument(!containsValue(value), "value already present: %s", value);
        }
        V oldValue = delegate.put(key, value);
        updateInverseMap(key, containedKey, oldValue, value);
        return oldValue;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  3. internal/kms/kms.go

    	// Next, update the request counters
    	if err == nil {
    		k.reqOK.Add(1)
    		return
    	}
    
    	var s3Err Error
    	if errors.As(err, &s3Err) && s3Err.Code >= http.StatusInternalServerError {
    		k.reqFail.Add(1)
    	} else {
    		k.reqErr.Add(1)
    	}
    }
    
    type kmsConn struct {
    	endpoints  []string
    	enclave    string
    	defaultKey string
    	client     *kms.Client
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

          assertThat(response2.header("X-Response-ID")).isEqualTo("1")
        } else {
          assertThat(response2.header("X-Response-ID")).isEqualTo("2")
        }
      }
    
      private fun requestBodyOrNull(requestMethod: String): RequestBody? {
        return if (requestMethod == "POST" || requestMethod == "PUT") "foo".toRequestBody("text/plain".toMediaType()) else null
      }
    
      @Test
      fun postInvalidatesCache() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       */
      boolean replace(K key, long expectedOldValue, long newValue) {
        if (expectedOldValue == 0L) {
          return putIfAbsent(key, newValue) == 0L;
        } else {
          AtomicLong atomic = map.get(key);
          return (atomic == null) ? false : atomic.compareAndSet(expectedOldValue, newValue);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. tests/test_schema_extra_examples.py

        class Item(BaseModel):
            data: str
    
            if PYDANTIC_V2:
                model_config = ConfigDict(
                    json_schema_extra={"example": {"data": "Data in schema_extra"}}
                )
            else:
    
                class Config:
                    schema_extra = {"example": {"data": "Data in schema_extra"}}
    
        @app.post("/schema_extra/")
        def schema_extra(item: Item):
            return item
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  7. impl/maven-core/pom.xml

                  <!-- was only a workaround for Plexus Container, hopefully never used by anyone else -->
                  <exclude>org.apache.maven.plugin.DefaultBuildPluginManager#setMojoExecutionListeners(java.util.List)</exclude>
                  <!-- could have never been used due to usage of non-export class (CoreExportsProvider) -->
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 13:40:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/FinalizableReferenceQueue.java

              return systemLoader.loadClass(FINALIZER_CLASS_NAME);
            } catch (ClassNotFoundException e) {
              // Ignore. Finalizer is simply in a child class loader.
              return null;
            }
          } else {
            return null;
          }
        }
      }
    
      /**
       * Try to load Finalizer in its own class loader. If Finalizer's thread had a direct reference to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 11 20:51:36 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

            if (commandLine.hasOption(CLIManager.COLOR)) {
                if (commandLine.getOptionValue(CLIManager.COLOR) != null) {
                    return Optional.of(commandLine.getOptionValue(CLIManager.COLOR));
                } else {
                    return Optional.of("auto");
                }
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> help() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil.go

    		var (
    			n  int
    			un int
    			nw int64
    		)
    
    		remain := len(buf) % DirectioAlignSize
    		if remain == 0 {
    			// buf is aligned for directio write()
    			n, err = w.Write(buf)
    			nw = int64(n)
    		} else {
    			if remain < len(buf) {
    				n, err = w.Write(buf[:len(buf)-remain])
    				if err != nil {
    					return written, err
    				}
    				nw = int64(n)
    			}
    
    			// Disable O_DIRECT on fd's on unaligned buffer
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top