Typescript Function Argument With Default Value In Java