The module io.github.mmm.base (artifactId mmm-base) provides a minimal set of APIs and utils for general purpose usage.
It is mainly designed for usage in our own project.
If you find something helpful in there, feel free to also reuse it outside of this m-m-m project.
However, we intentionally do not want to be tempted to create another "apache-commons-*" here.
So do not expect generic feature requests to be implemented and keep in mind that we might consider doing a breaking API change in future releases (while we try to avoid this when easily possible).
This library offers the following features:
-
ApplicationExceptionfor exceptions withUUID,code, and distinction between user and technical errors. -
CharFilterinterface and implementations -
Justificationto justify strings -
Placements such as
Alignment,Direction,Orientation, etc. -
Converter and parser for
Temporalvalues -
CompareOperatorto compate strings, numbers, temporals, or any other comparable object -
CaseHelperto deal with lower/upper case -
etc.
Maven Dependency:
<dependency>
<groupId>io.github.m-m-m</groupId>
<artifactId>mmm-base</artifactId>
<version>${mmm.base.version}</version>
</dependency>Module Dependency:
requires transitive io.github.mmm.base;The module io.github.mmm.base.metainfo (artifactId mmm-base-metainfo) provides a minimal set of APIs for dealing with meta-information.
This library offers the following features:
-
MetaInfointerface to instantiate and access meta-information. -
MetaInfosto annotate meta-information.
Maven Dependency:
<dependency>
<groupId>io.github.m-m-m</groupId>
<artifactId>mmm-base-metainfo</artifactId>
<version>${mmm.base.version}</version>
</dependency>Module Dependency:
requires transitive io.github.mmm.base.metainfo;The module io.github.mmm.base.placement (artifactId mmm-base-placement) provides a enums for placement.
This library offers the following enums:
-
Alignmentfor 2-D alignments. -
Directionfor 2-D direction. -
HorizontalAlignmentfor horizontal alignment (1-D). -
OrientationwithHORIZONTALandVERTICAL. -
VerticalAlignmentfor vertical alignment (1-D).