public static TrackableCollection<StackItemView> getCollection( Iterable<SpellAbilityStackInstance> instances) { if (instances == null) { return null; } TrackableCollection<StackItemView> collection = new TrackableCollection<StackItemView>(); for (SpellAbilityStackInstance si : instances) { collection.add(si.getView()); } return collection; }
public static StackItemView get(SpellAbilityStackInstance si) { return si == null ? null : si.getView(); }