@Override
    public boolean equals(final Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }

        final Window other = (Window) obj;
        return startMs == other.startMs && endMs == other.endMs;
    }
Check if the given window overlaps with this window.
Should throw an {@link IllegalArgumentException} if the {@code other} window has a different type than {@code
this} window.

@param other another window of the same type
@return {@code true} if {@code other} overlaps with this window&mdash;{@code false} otherwise
streams/src/main/java/org/apache/kafka/streams/kstream/Window.java