ImmutableSortedSetFactory
public class ImmutableSortedSetFactoryImpl extends Object implements ImmutableSortedSetFactory
Modifier and Type | Field | Description |
---|---|---|
static ImmutableSortedSetFactory |
INSTANCE |
Constructor | Description |
---|---|
ImmutableSortedSetFactoryImpl() |
public static final ImmutableSortedSetFactory INSTANCE
public <T> ImmutableSortedSet<T> empty()
empty
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> empty(Comparator<? super T> comparator)
empty
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> of()
ImmutableSortedSetFactory
ImmutableSortedSetFactory.empty()
.of
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> with()
ImmutableSortedSetFactory
ImmutableSortedSetFactory.empty()
.with
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> of(T... items)
ImmutableSortedSetFactory
of
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> with(T... items)
with
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> ofAll(Iterable<? extends T> items)
ImmutableSortedSetFactory
ofAll
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> withAll(Iterable<? extends T> items)
withAll
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> of(Comparator<? super T> comparator)
ImmutableSortedSetFactory
of
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> with(Comparator<? super T> comparator)
with
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> of(Comparator<? super T> comparator, T... items)
ImmutableSortedSetFactory
of
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> with(Comparator<? super T> comparator, T... items)
with
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> ofAll(Comparator<? super T> comparator, Iterable<? extends T> items)
ImmutableSortedSetFactory
ofAll
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> withAll(Comparator<? super T> comparator, Iterable<? extends T> items)
withAll
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> ofSortedSet(SortedSet<T> set)
ImmutableSortedSetFactory
ofSortedSet
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> withSortedSet(SortedSet<T> set)
withSortedSet
in interface ImmutableSortedSetFactory
Copyright © 2004–2019. All rights reserved.