Why to limit it like this? It doesn't have any functionality, which requires having String as a key. Just a general purpose class, which can track changes.