Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
26
apk_decompiled/sources/com/google/firebase/events/Event.java
Normal file
26
apk_decompiled/sources/com/google/firebase/events/Event.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.google.firebase.events;
|
||||
|
||||
import com.google.firebase.components.Preconditions;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class Event<T> {
|
||||
private final T payload;
|
||||
private final Class<T> type;
|
||||
|
||||
public Event(Class<T> cls, T t2) {
|
||||
this.type = (Class) Preconditions.checkNotNull(cls);
|
||||
this.payload = (T) Preconditions.checkNotNull(t2);
|
||||
}
|
||||
|
||||
public T getPayload() {
|
||||
return this.payload;
|
||||
}
|
||||
|
||||
public Class<T> getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return String.format("Event{type: %s, payload: %s}", this.type, this.payload);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.google.firebase.events;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface EventHandler<T> {
|
||||
void handle(Event<T> event);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.google.firebase.events;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface Publisher {
|
||||
void publish(Event<?> event);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.google.firebase.events;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface Subscriber {
|
||||
<T> void subscribe(Class<T> cls, EventHandler<? super T> eventHandler);
|
||||
|
||||
<T> void subscribe(Class<T> cls, Executor executor, EventHandler<? super T> eventHandler);
|
||||
|
||||
<T> void unsubscribe(Class<T> cls, EventHandler<? super T> eventHandler);
|
||||
}
|
||||
Reference in New Issue
Block a user