コード例 #1
0
 public MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator) {
   return TreeSortedSet.newSet(comparator, this);
 }
コード例 #2
0
 @Test
 public void toSortedSetBy() {
   ImmutableCollection<Integer> integers = this.classUnderTest();
   MutableSortedSet<Integer> set = integers.toSortedSetBy(Functions.getToString());
   Verify.assertSortedSetsEqual(TreeSortedSet.newSet(integers), set);
 }
コード例 #3
0
 public MutableSortedSet<T> toSortedSet() {
   return TreeSortedSet.newSet(null, this);
 }
コード例 #4
0
 public PartitionTreeSortedSet(Comparator<? super T> comparator, Predicate<? super T> predicate) {
   super(predicate);
   this.selected = TreeSortedSet.newSet(comparator);
   this.rejected = TreeSortedSet.newSet(comparator);
 }