Java Create New Object Array Typescript Enum Get Key