Java Create New Object Array Typescript Enum For Loop