Types that are annotated with this annotation will be instantiated only once.
It might be possible to get the instance of the class by:
all classes that implement this interface will be instantiated only once.
It might be possible to get the instance of the class by:
- Calling the static method
getInstance()
- Accessing the public static field
INSTANCE
all classes that implement this interface will be instantiated only once.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The method to obtain the instance of the singleton class. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescription@NotNull Singleton.Method
Returns the method to get the instance of the singleton class.
-
Element Details
-
value
Returns the method to get the instance of the singleton class.- Returns:
- The method to get the singleton
- Default:
UNDEFINED
-