单项选择题

TreeSet用于存储自定义类型数据时要求该自定义类型实现()接口或者提供对该类型对象进行比较的比较器。

A.Set
B.Iterator
C.Comparable
D.Comparator