Lines Matching defs:ImmutableSet
29 * GWT emulated version of {@link ImmutableSet}. For the unsorted sets, they
40 public abstract class ImmutableSet<E> extends ForwardingImmutableCollection<E>
43 ImmutableSet(Set<E> delegate) {
47 ImmutableSet() {
53 public static <E> ImmutableSet<E> of() {
54 return (ImmutableSet<E>) EmptyImmutableSet.INSTANCE;
57 public static <E> ImmutableSet<E> of(E element) {
62 public static <E> ImmutableSet<E> of(E e1, E e2) {
67 public static <E> ImmutableSet<E> of(E e1, E e2, E e3) {
72 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4) {
77 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5) {
82 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6,
92 @Deprecated public static <E> ImmutableSet<E> of(E[] elements) {
96 public static <E> ImmutableSet<E> copyOf(E[] elements) {
108 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
113 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
114 if (elements instanceof ImmutableSet
117 ImmutableSet<E> set = (ImmutableSet<E>) elements;
123 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) {
129 // TODO: Remove "ImmutableSet.<E>" when eclipse bug is fixed.
130 return ImmutableSet.<E>of(first);
144 static <E> ImmutableSet<E> unsafeDelegate(Set<E> delegate) {
155 private static <E> ImmutableSet<E> create(E... elements) {
217 @Override public ImmutableSet<E> build() {