public boolean add(final T value) {int index = elements.size();elements.add(value);valueKeyMap.put(value, index);return true;}

public bool Add(T value){int index = elements.Count;elements.Add(value);if (valueKeyMap.ContainsKey(value)){valueKeyMap[value] = index;}else{valueKeyMap.Add(value, index);}return true;}
