Summary: values() create a shallow copy of the underlying array every time as there are no immutable arrays in java. By using fromInt() we avoid this allocation. Reviewed By: pasqualeanatriello Differential Revision: D4494371 fbshipit-source-id: 11cff65114803e185bc67a96da0bf2a2c4a3e6d9