All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flyjingfish.android_aop_plugin.beans.AopReplaceCut.kt Maven / Gradle / Ivy

Go to download

Lightweight Aop for Android platform, you deserve it, action is worse than your heartbeat

The newest version!
package com.flyjingfish.android_aop_plugin.beans

data class AopReplaceCut(val targetClassName:String, val invokeClassName:String,val matchType:String = "EXTENDS",val excludeClass:Array?) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as AopReplaceCut

        if (targetClassName != other.targetClassName) return false
        if (invokeClassName != other.invokeClassName) return false
        if (matchType != other.matchType) return false
        if (excludeClass != null) {
            if (other.excludeClass == null) return false
            if (!excludeClass.contentEquals(other.excludeClass)) return false
        } else if (other.excludeClass != null) return false

        return true
    }

    override fun hashCode(): Int {
        var result = targetClassName.hashCode()
        result = 31 * result + invokeClassName.hashCode()
        result = 31 * result + matchType.hashCode()
        result = 31 * result + (excludeClass?.contentHashCode() ?: 0)
        return result
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy