Groovy JDK

java.util
Class SortedSet

Method Summary
SortedSet asImmutable()
A convenience method for creating an immutable sorted set
SortedSet asSynchronized()
A convenience method for creating a synchronized SortedSet
SortedSet sort()
Avoids doing unnecessary work when sorting an already sorted set
 
Method Detail

asImmutable

public SortedSet asImmutable()
A convenience method for creating an immutable sorted set.

Returns:
an immutable SortedSet
See:
Collections#unmodifiableSortedSet.

asSynchronized

public SortedSet asSynchronized()
A convenience method for creating a synchronized SortedSet.

Returns:
a synchronized SortedSet
See:
Collections#synchronizedSortedSet.

sort

public SortedSet sort()
Avoids doing unnecessary work when sorting an already sorted set.

Returns:
the sorted set

Groovy JDK