find

inline fun <T : VitalEntity<ID>> find(predicate: Predicate<T> = Predicate { true }): T?

Gets the first VitalEntity that matches the given predicate.


fun <T : VitalEntity<ID>> find(type: Class<T>, predicate: Predicate<T> = Predicate { true }): T?

Gets the first VitalEntity that matches the given type and predicate.