SortedSet
inherits from Set
behave identically on sorted sets and normal sets with two exceptions: - The
Iterator
returned by theiterator
operation traverses the sorted set in order. - The array returned by
toArray
contains the sorted set's elements in order.
toString
method of the JDK's SortedSet
implementations returns a string containing all the elements of the sorted set, in order.
No comments:
Post a Comment