@SuppressWarnings({"CheckReturnValue", "ResultOfMethodCallIgnored"}) @Test @DisplayName("throw IAE when constructing from non-event type URL") void throwOnNonEventType() { TypeUrl typeUrl = TypeUrl.from(ProjectId.getDescriptor()); assertThrows(IllegalArgumentException.class, () -> EventClass.from(typeUrl)); }
public static EventClass from(Class<? extends EventMessage> rawClass) { return new EventClass(checkNotNull(rawClass)); }
EventClass extends MessageClass<EventMessage> { public static EventClass from(Class<? extends EventMessage> rawClass) { return new EventClass(checkNotNull(rawClass)); } }
EventClass extends MessageClass<EventMessage> { public static EventClass from(Class<? extends EventMessage> rawClass) { return new EventClass(checkNotNull(rawClass)); } private  EventClass(Class<? extends EventMessage> value); private  EventClass(Class<? extends EventMessage> value, TypeUrl typeUrl); }
EventClass extends MessageClass<EventMessage> { public static EventClass from(Class<? extends EventMessage> rawClass) { return new EventClass(checkNotNull(rawClass)); } private  EventClass(Class<? extends EventMessage> value); private  EventClass(Class<? extends EventMessage> value, TypeUrl typeUrl); static EventClass from(Class<? extends EventMessage> rawClass); static EventClass fromThrowable(Class<? extends ThrowableMessage> cls); @SuppressWarnings("unchecked") // Logically checked. static EventClass from(TypeUrl typeUrl); static EventClass from(Event event); static EventClass of(Message eventOrMessage); static ImmutableSet<EventClass> setOf(Iterable<Class<? extends EventMessage>> classes); @SafeVarargs static ImmutableSet<EventClass> setOf(Class<? extends EventMessage>... classes); static ImmutableSet<EventClass> setOf(Class<? extends EventMessage> cls); }
EventClass extends MessageClass<EventMessage> { public static EventClass from(Class<? extends EventMessage> rawClass) { return new EventClass(checkNotNull(rawClass)); } private  EventClass(Class<? extends EventMessage> value); private  EventClass(Class<? extends EventMessage> value, TypeUrl typeUrl); static EventClass from(Class<? extends EventMessage> rawClass); static EventClass fromThrowable(Class<? extends ThrowableMessage> cls); @SuppressWarnings("unchecked") // Logically checked. static EventClass from(TypeUrl typeUrl); static EventClass from(Event event); static EventClass of(Message eventOrMessage); static ImmutableSet<EventClass> setOf(Iterable<Class<? extends EventMessage>> classes); @SafeVarargs static ImmutableSet<EventClass> setOf(Class<? extends EventMessage>... classes); static ImmutableSet<EventClass> setOf(Class<? extends EventMessage> cls);  }