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

ru.progrm_jarvis.javacommons.annotation.DontOverrideEqualsAndHashCode Maven / Gradle / Ivy

package ru.progrm_jarvis.javacommons.annotation;

import java.lang.annotation.*;

/**
 * Marker indicating that {@link Object#equals(Object)} and {@link Object#hashCode()} methods
 * are not overridden for this class for some reason.
 */
@Inherited
@Documented
@Target(ElementType.TYPE)
public @interface DontOverrideEqualsAndHashCode {

    /**
     * Retrieves the reason why this class's {@link Object#equals(Object)} and {@link Object#hashCode()}
     * methods are not overridden.
     *
     * @return reason for not overriding {@link Object#hashCode()} and {@link Object#equals(Object)} methods
     */
    String value() default "";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy