mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Switch from boxed Boolean to primitive boolean
Also add a parameter comment and reformat with `google-java-format`.
This commit is contained in:
parent
c331ac64e7
commit
1b564c67f2
1 changed files with 9 additions and 3 deletions
|
|
@ -99,7 +99,12 @@ public final class ListenerSet<T extends @NonNull Object> {
|
||||||
* during one {@link Looper} message queue iteration were handled by the listeners.
|
* during one {@link Looper} message queue iteration were handled by the listeners.
|
||||||
*/
|
*/
|
||||||
public ListenerSet(Looper looper, Clock clock, IterationFinishedEvent<T> iterationFinishedEvent) {
|
public ListenerSet(Looper looper, Clock clock, IterationFinishedEvent<T> iterationFinishedEvent) {
|
||||||
this(/* listeners= */ new CopyOnWriteArraySet<>(), looper, clock, iterationFinishedEvent, true);
|
this(
|
||||||
|
/* listeners= */ new CopyOnWriteArraySet<>(),
|
||||||
|
looper,
|
||||||
|
clock,
|
||||||
|
iterationFinishedEvent,
|
||||||
|
/* throwsWhenUsingWrongThread= */ true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ListenerSet(
|
private ListenerSet(
|
||||||
|
|
@ -107,7 +112,7 @@ public final class ListenerSet<T extends @NonNull Object> {
|
||||||
Looper looper,
|
Looper looper,
|
||||||
Clock clock,
|
Clock clock,
|
||||||
IterationFinishedEvent<T> iterationFinishedEvent,
|
IterationFinishedEvent<T> iterationFinishedEvent,
|
||||||
Boolean throwsWhenUsingWrongThread) {
|
boolean throwsWhenUsingWrongThread) {
|
||||||
this.clock = clock;
|
this.clock = clock;
|
||||||
this.listeners = listeners;
|
this.listeners = listeners;
|
||||||
this.iterationFinishedEvent = iterationFinishedEvent;
|
this.iterationFinishedEvent = iterationFinishedEvent;
|
||||||
|
|
@ -150,7 +155,8 @@ public final class ListenerSet<T extends @NonNull Object> {
|
||||||
@CheckResult
|
@CheckResult
|
||||||
public ListenerSet<T> copy(
|
public ListenerSet<T> copy(
|
||||||
Looper looper, Clock clock, IterationFinishedEvent<T> iterationFinishedEvent) {
|
Looper looper, Clock clock, IterationFinishedEvent<T> iterationFinishedEvent) {
|
||||||
return new ListenerSet<>(listeners, looper, clock, iterationFinishedEvent, throwsWhenUsingWrongThread);
|
return new ListenerSet<>(
|
||||||
|
listeners, looper, clock, iterationFinishedEvent, throwsWhenUsingWrongThread);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue