
com.develhack.annotation.feature.InitializeFieldsByConstructor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of develhack-core Show documentation
Show all versions of develhack-core Show documentation
The underlying library for Develhack.
package com.develhack.annotation.feature;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Represents that the instance of the class initializes fields by constructor.
*/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface InitializeFieldsByConstructor {
/** access level of constructor that initialize only final fields */
Access finalFieldsInitializer() default Access.PUBLIC;
/** access level of constructor that initialize all fields */
Access allFieldsInitializer() default Access.NONE;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy