Home | History | Annotate | Download | only in collect

Lines Matching refs:element

27  * Implementation of {@link ImmutableSet} with exactly one element.
35 final transient E element;
42 SingletonImmutableSet(E element) {
43 this.element = Preconditions.checkNotNull(element);
46 SingletonImmutableSet(E element, int hashCode) {
48 this.element = element;
61 return element.equals(target);
65 return Iterators.singletonIterator(element);
69 return new Object[] { element };
81 objectArray[0] = element;
91 return that.size() == 1 && element.equals(that.iterator().next());
99 return cachedHashCode = element.hashCode();
109 String elementToString = element.toString();