TreeMap and TreeSet

TreeMap of a simple Java type

TreeSet of a simple Java Type

TreeMapTreeSet of a custom Java type

TreeMap and TreeSet Thread Safety