(value: number)
| 4 | private static readonly map: {[num: number]: Integer} = {}; |
| 5 | |
| 6 | public static get(value: number): Integer { |
| 7 | if (IntegerFactory.map[value] === undefined) { |
| 8 | IntegerFactory.map[value] = new Integer().set(value).setConstant(); |
| 9 | } |
| 10 | return IntegerFactory.map[value]; |
| 11 | } |
| 12 | } |
nothing calls this directly
no test coverage detected