27 lines
631 B
Java
27 lines
631 B
Java
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);
|
|
}
|
|
}
|