I have about ~100 intefaces which look like this:
interface EmojiArrow {
Emoji UP_ARROW = new Emoji("⬆️", "\\u2B06\\uFE0F", "⬆️", "⬆️", "%E2%AC%86%EF%B8%8F", Collections.unmodifiableList(Arrays.asList(":arrow_up:", ":up_arrow:")), Collections.singletonList(":arrow_up:"), Collections.singletonList(":arrow_up:"), Collections.unmodifiableList(Arrays.asList("arrow", "cardinal", "direction", "north", "up")), false, false, 0.6, FULLY_QUALIFIED, "up arrow", EmojiGroup.SYMBOLS, EmojiSubGroup.ARROW, false);
}
All intefaces contain in total 5000+ objects. Do you know any way how this could be further be improved when all interfaces are initialized? Currently it takes ~90ms.
I'm on Java 8. Out of curiosity I tried a newer Java version with List.of but this did basically nothing. The Emoji object is just a simple POJO
