piotrowy / RnaSprite

0 stars 0 forks source link

Make AtomNamesList a singleton #5

Closed tzok closed 8 years ago

tzok commented 8 years ago

This class should be a singleton (private constructor + public static getInstance())

Also, the getList() should return Collections.unmodifiableList(list) to prevent other classes from changing the content

piotrowy commented 8 years ago

I corrected it.