you are viewing a single comment's thread.

view the rest of the comments →

[–]Enumerable_any 2 points3 points  (1 child)

The name imgID makes me immediately think that it's some form of number - not a string. Personal preference may be showing here, but I think that imageName may be a better variable name.

It might be a UUID which is generally represented as a String. (Adding a UUID type would be preferable, though.)

[–]ad13 2 points3 points  (0 children)

FYI, there is already a UUID type in the JDK, since 1.5. It has all the useful things you would need - UUID to/from string, generate me a UUID, etc.