Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 530 for enum_ (0.03 seconds)

  1. docs/tr/docs/tutorial/path-params.md

    ### Bir `Enum` Sınıfı Oluşturalım { #create-an-enum-class }
    
    `Enum`'u import edin ve `str` ile `Enum`'dan miras alan bir alt sınıf oluşturun.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

      }
    
      // A static mapping from an Enum type to its set of LockGraphNodes.
      private static final ConcurrentMap<
              Class<? extends Enum<?>>, Map<? extends Enum<?>, LockGraphNode>>
          lockGraphNodesPerType = new MapMaker().weakKeys().makeMap();
    
      /** Creates a {@code CycleDetectingLockFactory.WithExplicitOrdering<E>}. */
      public static <E extends Enum<E>> WithExplicitOrdering<E> newInstanceWithExplicitOrdering(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 36K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @SuppressWarnings("serial") // we're overriding default serialization
    final class ImmutableEnumMap<K extends Enum<K>, V> extends IteratorBasedImmutableMap<K, V> {
      static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) {
        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  4. docs/uk/docs/tutorial/path-params.md

    ### Створіть клас `Enum` { #create-an-enum-class }
    
    Імпортуйте `Enum` і створіть підклас, що наслідується від `str` та `Enum`.
    
    Завдяки наслідуванню від `str` документація API зможе визначити, що значення повинні бути типу `string`, і зможе коректно їх відобразити.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 14K bytes
    - Click Count (0)
  5. docs_src/path_params/tutorial005_py310.py

    from enum import Enum
    
    from fastapi import FastAPI
    
    
    class ModelName(str, Enum):
        alexnet = "alexnet"
        resnet = "resnet"
        lenet = "lenet"
    
    
    app = FastAPI()
    
    
    @app.get("/models/{model_name}")
    async def get_model(model_name: ModelName):
        if model_name is ModelName.alexnet:
            return {"model_name": model_name, "message": "Deep Learning FTW!"}
    
        if model_name.value == "lenet":
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 546 bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/EnumHashBiMap.java

     */
    @GwtCompatible
    @J2ktIncompatible
    public final class EnumHashBiMap<K extends Enum<K>, V extends @Nullable Object>
        extends AbstractBiMap<K, V> {
      transient Class<K> keyTypeOrObjectUnderJ2cl;
    
      /**
       * Returns a new, empty {@code EnumHashBiMap} using the specified key type.
       *
       * @param keyType the key type
       */
      public static <K extends Enum<K>, V extends @Nullable Object> EnumHashBiMap<K, V> create(
          Class<K> keyType) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  7. docs/es/docs/tutorial/path-params.md

    ### Crear una clase `Enum` { #create-an-enum-class }
    
    Importa `Enum` y crea una subclase que herede de `str` y de `Enum`.
    
    Al heredar de `str`, la documentación de la API podrá saber que los valores deben ser de tipo `string` y podrá representarlos correctamente.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/path-params.md

    ### Create an `Enum` class { #create-an-enum-class }
    
    Import `Enum` and create a sub-class that inherits from `str` and from `Enum`.
    
    By inheriting from `str` the API docs will be able to know that the values must be of type `string` and will be able to render correctly.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ImmutableEnumMap.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @SuppressWarnings("serial") // we're overriding default serialization
    final class ImmutableEnumMap<K extends Enum<K>, V> extends IteratorBasedImmutableMap<K, V> {
      static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) {
        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/hash/Funnel.java

     * serialization of funnels. When possible, it is recommended that funnels be implemented as a
     * single-element enum to maintain serialization guarantees. See Effective Java (2nd Edition), Item
     * 3: "Enforce the singleton property with a private constructor or an enum type". For example:
     *
     * {@snippet :
     * public enum PersonFunnel implements Funnel<Person> {
     *   INSTANCE;
     *   public void funnel(Person person, PrimitiveSink into) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 2.1K bytes
    - Click Count (0)
Back to Top