Cleanup enumeration static factory methods 15/100815/4
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Apr 2022 12:47:23 +0000 (14:47 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 26 Apr 2022 15:46:44 +0000 (15:46 +0000)
We have some amount of inconsistency around enumeration returns. Improve
the situation by making forName() return a nullable value and add
ofName()/ofValue() methods which throw IAE.

While we are modifying the template, also add proper @Nullable and
@NonNull annotations.

JIRA: MDSAL-754
Change-Id: I07fe4b408174ba830bcc1369ed70597ea2538a85
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>

No differences found