Added original copyright notes.
Arrays.toString
HashMap allows to override hashCode/equals.
Java imitates: BitSet, HashSet, StringBuilder.
Ported DFA classes.
ATNConfig et al.
ATNState.