Okay let's say you have an instance of `Resource`,...
# announcements
k
Okay let's say you have an instance of
Resource
, and you want to get the list of conditions from it. In the first case you'd get a
List<ResourceCondition>
. Maybe that's enough for you, but maybe you actually want/need to know what kind of conditions they are. The second case allows for this, you can have an instance of
AltResource<MyCondition>
, and you could get a list from it with type
List<MyCondition>
, allowing you to invoke
MyCondition
-specific behaviour.
👍 1