From f402a84dfa057a6f0a0ac747145683fca6b03ee9 Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Thu, 25 Jan 2018 07:58:03 -0800 Subject: [PATCH] Group Timeline.getPeriod overloads ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=183238240 --- .../google/android/exoplayer2/Timeline.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/Timeline.java b/library/core/src/main/java/com/google/android/exoplayer2/Timeline.java index 783278a121..4a1f2bfd1e 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/Timeline.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/Timeline.java @@ -710,18 +710,6 @@ public abstract class Timeline { == C.INDEX_UNSET; } - /** - * Populates a {@link Period} with data for the period at the specified index. Does not populate - * {@link Period#id} and {@link Period#uid}. - * - * @param periodIndex The index of the period. - * @param period The {@link Period} to populate. Must not be null. - * @return The populated {@link Period}, for convenience. - */ - public final Period getPeriod(int periodIndex, Period period) { - return getPeriod(periodIndex, period, false); - } - /** * Calls {@link #getPeriodPosition(Window, Period, int, long, long)} with a zero default position * projection. @@ -766,6 +754,18 @@ public abstract class Timeline { return Pair.create(periodIndex, periodPositionUs); } + /** + * Populates a {@link Period} with data for the period at the specified index. Does not populate + * {@link Period#id} and {@link Period#uid}. + * + * @param periodIndex The index of the period. + * @param period The {@link Period} to populate. Must not be null. + * @return The populated {@link Period}, for convenience. + */ + public final Period getPeriod(int periodIndex, Period period) { + return getPeriod(periodIndex, period, false); + } + /** * Populates a {@link Period} with data for the period at the specified index. *