return containsAll(that);
return containsAll(that);
@Override public boolean equals(@Nullable Object object) { if (object == this) { return true; } if (!(object instanceof Set)) { return false; } Set<?> that = (Set<?>) object; if (size() != that.size()) { return false; } if (hasSameComparator(that, comparator)) { Iterator<?> iterator = that.iterator(); try { for (int i = fromIndex; i < toIndex; i++) { Object otherElement = iterator.next(); if (otherElement == null || unsafeCompare(elements[i], otherElement) != 0) { return false; } } return true; } catch (ClassCastException e) { return false; } catch (NoSuchElementException e) { return false; // concurrent change to other set } } return this.containsAll(that); }
@Override public boolean equals(@Nullable Object object) { if (object == this) { return true; } if (!(object instanceof Set)) { return false; } Set<?> that = (Set<?>) object; if (size() != that.size()) { return false; } if (hasSameComparator(that, comparator)) { Iterator<?> iterator = that.iterator(); try { for (int i = fromIndex; i < toIndex; i++) { Object otherElement = iterator.next(); if (otherElement == null || unsafeCompare(elements[i], otherElement) != 0) { return false; } } return true; } catch (ClassCastException e) { return false; } catch (NoSuchElementException e) { return false; // concurrent change to other set } } return this.containsAll(that); }
return this.containsAll(that);
@Override public boolean equals(@Nullable Object object) { if (object == this) { return true; } if (!(object instanceof Set)) { return false; } Set<?> that = (Set<?>) object; if (size() != that.size()) { return false; } if (hasSameComparator(that, comparator)) { Iterator<?> iterator = that.iterator(); try { for (int i = fromIndex; i < toIndex; i++) { Object otherElement = iterator.next(); if (otherElement == null || unsafeCompare(elements[i], otherElement) != 0) { return false; } } return true; } catch (ClassCastException e) { return false; } catch (NoSuchElementException e) { return false; // concurrent change to other set } } return this.containsAll(that); }
return this.containsAll(that);
return this.containsAll(that);
return this.containsAll(that);
return this.containsAll(that);
return this.containsAll(that);
return this.containsAll(that);
return this.containsAll(that);
return this.containsAll(that);
return this.containsAll(that);
return containsAll(that);