Interface ClassNamingStrategy
- All Known Implementing Classes:
ClassNamingStrategy.PaginatedClassNamingStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Object responsible for creating class names at runtime.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classClass naming strategy appending numeric IDs to the base name. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ClassNamingStrategycreatePaginated(@NonNull String baseName) Creates new instance of paginated class naming strategy with the given base name.default @NotNull Stringget()@NotNull StringnextName()Creates a name for a new class to be generated considering that it should not overlap any names of loaded classes.
-
Method Details
-
nextName
Creates a name for a new class to be generated considering that it should not overlap any names of loaded classes.- Returns:
- name for a new class
-
get
-
createPaginated
Creates new instance of paginated class naming strategy with the given base name. This strategy will append numeric IDs to the given base name.- Parameters:
baseName- base name of the generated class names to which the ID should be appended- Returns:
- created paginated class naming strategy
-