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

com.github.joekerouac.common.tools.proxy.MethodDefine Maven / Gradle / Ivy

The newest version!
// Generated by delombok at Fri Mar 14 11:41:38 CST 2025
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
 * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
 * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, 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 com.github.joekerouac.common.tools.proxy;

/**
 * 方法定义
 *
 * @author JoeKerouac
 * @since 1.0.0
 */
public class MethodDefine {
    /**
     * 方法名
     */
    private final String name;
    /**
     * 方法访权限,例如{@link java.lang.reflect.Modifier#PUBLIC public}
     */
    private final int modifiers;
    /**
     * 方法实现
     */
    private Interception implemention;

    /**
     * 方法名
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getName() {
        return this.name;
    }

    /**
     * 方法访权限,例如{@link java.lang.reflect.Modifier#PUBLIC public}
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int getModifiers() {
        return this.modifiers;
    }

    /**
     * 方法实现
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Interception getImplemention() {
        return this.implemention;
    }

    /**
     * 方法实现
     */
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setImplemention(final Interception implemention) {
        this.implemention = implemention;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof MethodDefine)) return false;
        final MethodDefine other = (MethodDefine) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (this.getModifiers() != other.getModifiers()) return false;
        final java.lang.Object this$name = this.getName();
        final java.lang.Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final java.lang.Object this$implemention = this.getImplemention();
        final java.lang.Object other$implemention = other.getImplemention();
        if (this$implemention == null ? other$implemention != null : !this$implemention.equals(other$implemention)) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof MethodDefine;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getModifiers();
        final java.lang.Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final java.lang.Object $implemention = this.getImplemention();
        result = result * PRIME + ($implemention == null ? 43 : $implemention.hashCode());
        return result;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "MethodDefine(name=" + this.getName() + ", modifiers=" + this.getModifiers() + ", implemention=" + this.getImplemention() + ")";
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public MethodDefine(final String name, final int modifiers, final Interception implemention) {
        this.name = name;
        this.modifiers = modifiers;
        this.implemention = implemention;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy