Catalog API

Common lookup behaviour for Java enums

A Java interface an enum implements to gain lookup by code or by tag value, membership checks and an ordered list, all as static methods on Catalog and BiCatalog.

ArchivedPersonalOpen source

Record

Kind
Package
Role
Author
Started
August 2020
Ended
June 2021
Licence
Apache-2.0

Technology1

Evidence7 sources

The GitHub repository is archivedrepogithub.com The LICENSE file is the unmodified text of the Apache License 2.0licencegithub.com Catalog is a recursively generic interface an enum implements to give each constant an int code, and it supplies getEnum and hasCode for lookup and membership plus getOrderedList, getMap and stream as static methods on the interface itselfsourcegithub.com BiCatalog adds a second value of any object type alongside the code, with getEnumByTag and contains as its lookup and membership methodssourcegithub.com build.gradle sets a Java 11 toolchain, declares Guava as its only implementation dependency, and publishes to GitHub Packages rather than to a public repositorysourcegithub.com Three releases were published, v1.0.1 on 11 October 2020 through v1.0.3 on 5 June 2021repogithub.com The README states the copyright as Kato Shinya, 2020, and its install section directs the reader to contact the author for a token to download the packagedocsgithub.com

Links2

Relations4 edges

Content FrameworkUsed byExternalised values and rules for Java EnvaliUsed byAnnotation-driven entity validation for Java EpitaphUsed byNamed presets for Java regular expressions Zenna DBUsed byAnnotation-driven JSON content mapping