library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.java
/**
   * Returns whether this playlist is newer than {@code other}.
   *
   * @param other The playlist to compare.
   * @return Whether this playlist is newer than {@code other}.
   */
Returns whether this playlist is newer than  other.
@param other The playlist to compare.
@return Whether this playlist is newer than  other.
Returns whether this playlist is newer than other . @param other The playlist to compare . @return Whether this playlist is newer than other .
public boolean isNewerThan(@Nullable HlsMediaPlaylist other) {
    if (other == null || mediaSequence > other.mediaSequence) {
      return true;
    }
    if (mediaSequence < other.mediaSequence) {
      return false;
    }
    int segmentCount = segments.size() + skippedSegmentCount;
    int otherSegmentCount = other.segments.size() + other.skippedSegmentCount;
    if (segmentCount != otherSegmentCount) {
      return segmentCount > otherSegmentCount;
    }
    int partCount = trailingParts.size();
    int otherPartCount = other.trailingParts.size();
    return partCount > otherPartCount
        || (partCount == otherPartCount && hasEndTag && !other.hasEndTag);
  }
public boolean isNewerThan ( @ Nullable HlsMediaPlaylist other ) { if ( other == null || mediaSequence > other . mediaSequence ) { return true ; } if ( mediaSequence < other . mediaSequence ) { return false ; } int segmentCount = segments . size ( ) + skippedSegmentCount ; int otherSegmentCount = other . segments . size ( ) + other . skippedSegmentCount ; if ( segmentCount != otherSegmentCount ) { return segmentCount > otherSegmentCount ; } int partCount = trailingParts . size ( ) ; int otherPartCount = other . trailingParts . size ( ) ; return partCount > otherPartCount || ( partCount == otherPartCount && hasEndTag && ! other . hasEndTag ) ; }
Returns whether this playlist is newer than {@code other}.
Returns whether this playlist is newer than { @code other } .
// The media sequences are equal.