mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Modify merge function value hashCode to toString in MemberRulesData, FieldRulesData, MethodRulesData, ConstructorRulesData
This commit is contained in:
@@ -51,5 +51,7 @@ internal class ConstructorRulesData internal constructor(
|
||||
get() = super.isInitializeOfSuper || paramTypes != null || paramCount >= 0 ||
|
||||
paramCountRange.isEmpty().not() || paramCountConditions != null
|
||||
|
||||
override fun hashCode(other: Any?) = super.hashCode(other) + "[$paramTypes][$paramCount][$paramCountRange]".hashCode()
|
||||
override fun hashCode(other: Any?) = super.hashCode(other) + toString().hashCode()
|
||||
|
||||
override fun toString() = "[$paramTypes][$paramCount][$paramCountRange]"
|
||||
}
|
@@ -47,5 +47,7 @@ internal class FieldRulesData internal constructor(
|
||||
|
||||
override val isInitialize get() = super.isInitializeOfSuper || name.isNotBlank() || nameConditions != null || type != null
|
||||
|
||||
override fun hashCode(other: Any?) = super.hashCode(other) + "[$name][$nameConditions][$type]".hashCode()
|
||||
override fun hashCode(other: Any?) = super.hashCode(other) + toString().hashCode()
|
||||
|
||||
override fun toString() = "[$name][$nameConditions][$type]"
|
||||
}
|
@@ -62,5 +62,7 @@ internal open class MemberRulesData internal constructor(
|
||||
|
||||
override val isInitialize get() = isInitializeOfSuper || isInitializeOfMatch
|
||||
|
||||
override fun hashCode(other: Any?) = super.hashCode(other) + "[$isFindInSuper][$matchIndex][$matchCountRange]".hashCode()
|
||||
override fun hashCode(other: Any?) = super.hashCode(other) + toString().hashCode()
|
||||
|
||||
override fun toString() = "[$isFindInSuper][$matchIndex][$matchCountRange]"
|
||||
}
|
@@ -58,6 +58,7 @@ internal class MethodRulesData internal constructor(
|
||||
get() = super.isInitializeOfSuper || name.isNotBlank() || nameConditions != null || paramTypes != null ||
|
||||
paramCount >= 0 || paramCountRange.isEmpty().not() || paramCountConditions != null || returnType != null
|
||||
|
||||
override fun hashCode(other: Any?) =
|
||||
super.hashCode(other) + "[$name][$nameConditions][$paramTypes][$paramCount][$paramCountRange][$returnType]".hashCode()
|
||||
override fun hashCode(other: Any?) = super.hashCode(other) + toString().hashCode()
|
||||
|
||||
override fun toString() = "[$name][$nameConditions][$paramTypes][$paramCount][$paramCountRange][$returnType]"
|
||||
}
|
Reference in New Issue
Block a user