of

public static StateClass of(Entity entity)

Obtains the class of the state of the given entity.


public static StateClass of(EntityState state)

Creates an instance of EntityStateClass from the class of the given message.