Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isEnumImplicitMethodValues (0.1 sec)

  1. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/JavaSourceQueries.kt

    private
    fun JApiMethod.isEnumImplicitMethod(): Boolean =
        isEnumImplicitMethodValues() ||
            isEnumImplicitMethodValueOf()
    
    
    private
    fun JApiMethod.isEnumImplicitMethodValueOf(): Boolean {
        return name == "valueOf" && parameters.size == 1 && parameters.first().type == "java.lang.String"
    }
    
    
    private
    fun JApiMethod.isEnumImplicitMethodValues(): Boolean {
        return name == "values" && parameters.size == 0
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:24 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top