Skip to content

Commit 4e41e17

Browse files
committed
Update Frameset.java
Reformatted code
1 parent 09b670d commit 4e41e17

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

  • extractor/src/main/java/org/schabi/newpipe/extractor/stream

extractor/src/main/java/org/schabi/newpipe/extractor/stream/Frameset.java

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,23 @@
44

55
public final class Frameset {
66

7-
private List<String> urls;
8-
private int frameWidth;
9-
private int frameHeight;
10-
private int totalCount;
11-
private int durationPerFrame;
12-
private int framesPerPageX;
13-
private int framesPerPageY;
14-
15-
public Frameset(List<String> urls, int frameWidth, int frameHeight, int totalCount, int durationPerFrame, int framesPerPageX, int framesPerPageY) {
7+
private final List<String> urls;
8+
private final int frameWidth;
9+
private final int frameHeight;
10+
private final int totalCount;
11+
private final int durationPerFrame;
12+
private final int framesPerPageX;
13+
private final int framesPerPageY;
14+
15+
public Frameset(
16+
final List<String> urls,
17+
final int frameWidth,
18+
final int frameHeight,
19+
final int totalCount,
20+
final int durationPerFrame,
21+
final int framesPerPageX,
22+
final int framesPerPageY) {
23+
1624
this.urls = urls;
1725
this.totalCount = totalCount;
1826
this.durationPerFrame = durationPerFrame;
@@ -86,7 +94,7 @@ public int getDurationPerFrame() {
8694
* <li><code>4</code>: Bottom bound</li>
8795
* </ul>
8896
*/
89-
public int[] getFrameBoundsAt(long position) {
97+
public int[] getFrameBoundsAt(final long position) {
9098
if (position < 0 || position > ((totalCount + 1) * durationPerFrame)) {
9199
// Return the first frame as fallback
92100
return new int[] { 0, 0, 0, frameWidth, frameHeight };

0 commit comments

Comments
 (0)