nathanmarz/storm — pull request #157 by git2samus (2012-03-18 00:56:37+00:00)
Title: prevent duplicates on Fields

Fields receives a list of strings that is stored internally on an ArrayList however it is indexed with a HashMap and field indexes can be retrieved by name (Tuple fields can be retrieved by name too) therefore Fields should prevent duplicates to avoid ambiguity and internal inconsistencies between _index and _fields.

I couldn't find tests for this class so I've added those as well.