Home | History | Annotate | Download | only in collect

Lines Matching defs:ImmutableSet

29  * GWT emulated version of {@link ImmutableSet}.  For the unsorted sets, they
40 public abstract class ImmutableSet<E> extends ImmutableCollection<E> implements Set<E> {
41 ImmutableSet() {}
45 public static <E> ImmutableSet<E> of() {
46 return (ImmutableSet<E>) EmptyImmutableSet.INSTANCE;
49 public static <E> ImmutableSet<E> of(E element) {
54 public static <E> ImmutableSet<E> of(E e1, E e2) {
59 public static <E> ImmutableSet<E> of(E e1, E e2, E e3) {
64 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4) {
69 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5) {
74 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E... others) {
82 public static <E> ImmutableSet<E> copyOf(E[] elements) {
94 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
99 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
100 if (elements instanceof ImmutableSet && !(elements instanceof ImmutableSortedSet)) {
102 ImmutableSet<E> set = (ImmutableSet<E>) elements;
108 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) {
114 // TODO: Remove "ImmutableSet.<E>" when eclipse bug is fixed.
115 return ImmutableSet.<E>of(first);
129 static <E> ImmutableSet<E> unsafeDelegate(Set<E> delegate) {
140 private static <E> ImmutableSet<E> create(E... elements) {
202 @Override public ImmutableSet<E> build() {