Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 107 for Enum (0.47 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/SocketPolicy.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.mockwebserver
    
    enum class SocketPolicy {
      SHUTDOWN_SERVER_AFTER_RESPONSE,
      KEEP_OPEN,
      DISCONNECT_AT_END,
      UPGRADE_TO_SSL_AT_END,
      DISCONNECT_AT_START,
      DISCONNECT_AFTER_REQUEST,
      DISCONNECT_DURING_REQUEST_BODY,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/path-params.md

    ### 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.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

        }
    
    
        /**
         * An enum class to specify the distance of scopes from an element as a partial order
         *
         * Example:
         *   import ... // scope1  FirExplicitSimpleImportingScope - enum entry: ExplicitSimpleImporting
         *   // scope2  FirPackageMemberScope - enum entry: PackageMember
         *   class Outer { // scope3  FirClassUseSiteMemberScope - enum entry: ClassUseSite
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/path-params.md

    ### Создание класса `Enum`
    
    Импортируйте `Enum` и создайте подкласс, который наследуется от `str` и `Enum`.
    
    Мы наследуемся от `str`, чтобы документация API могла понять, что значения должны быть типа `string` и отображалась правильно.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/path-params.md

    ```
    
    否则,`/users/{user_id}` 将匹配 `/users/me`,FastAPI 会**认为**正在接收值为 `"me"` 的 `user_id` 参数。
    
    ## 预设值
    
    路径操作使用 Python 的 <abbr title="Enumeration">`Enum`</abbr> 类型接收预设的*路径参数*。
    
    ### 创建 `Enum` 类
    
    导入 `Enum` 并创建继承自 `str` 和 `Enum` 的子类。
    
    通过从 `str` 继承,API 文档就能把值的类型定义为**字符串**,并且能正确渲染。
    
    然后,创建包含固定值的类属性,这些固定值是可用的有效值:
    
    ```Python hl_lines="1  6-9"
    {!../../../docs_src/path_params/tutorial005.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 05:35:40 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  6. ChangeLog.md

    - [`KT-59366`](https://youtrack.jetbrains.com/issue/KT-59366) Deprecate KmModule.annotations
    - [`KT-59365`](https://youtrack.jetbrains.com/issue/KT-59365) Get rid of two-stage parsing in KotlinClassMetadata
    - [`KT-35116`](https://youtrack.jetbrains.com/issue/KT-35116) Enum.valueOf throws inconsistent exception across multiple platforms
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Dec 21 17:48:12 GMT 2023
    - 268.7K bytes
    - Viewed (1)
  7. docs/fr/docs/tutorial/path-params.md

    ### Création d'un `Enum`
    
    Importez `Enum` et créez une sous-classe qui hérite de `str` et `Enum`.
    
    En héritant de `str` la documentation sera capable de savoir que les valeurs doivent être de type `string` et pourra donc afficher cette `Enum` correctement.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

    internal val ClassDescriptor.isInterfaceLike: Boolean
        get() = when (kind) {
            ClassKind.CLASS, ClassKind.ENUM_CLASS, ClassKind.OBJECT, ClassKind.ENUM_ENTRY -> false
            else -> true
        }
    
    internal fun DeclarationDescriptor.toKtSymbol(analysisContext: Fe10AnalysisContext): KtSymbol? {
        if (this is ClassDescriptor && kind == ClassKind.ENUM_ENTRY) {
            return KtFe10DescEnumEntrySymbol(this, analysisContext)
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/path-params.md

    ## 定義済みの値
    
    *パスパラメータ*を受け取る *path operation* をもち、有効な*パスパラメータ*の値を事前に定義したい場合は、標準のPython <abbr title="Enumeration">`Enum`</abbr> を利用できます。
    
    ### `Enum` クラスの作成
    
    `Enum` をインポートし、 `str` と `Enum` を継承したサブクラスを作成します。
    
    `str` を継承することで、APIドキュメントは値が `文字列` でなければいけないことを知り、正確にレンダリングできるようになります。
    
    そして、固定値のクラス属性を作ります。すると、その値が使用可能な値となります:
    
    ```Python hl_lines="1 6 7 8 9"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescEnumEntrySymbol.kt

        override val name: Name
            get() = withValidityAssertion { descriptor.name }
    
        // There doesn't seem to be a way to determine if `descriptor` has a body or not, so we return an initializer even for enum entries
        // without a body.
        override val enumEntryInitializer: KtEnumEntryInitializerSymbol?
            get() = this
    
        override fun createPointer(): KtSymbolPointer<KtEnumEntrySymbol> = withValidityAssertion {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:46 GMT 2024
    - 3.4K bytes
    - Viewed (0)
Back to top