@Override public void dispose() { super.dispose(); if (cinematic != null) { Object o = cinematic.getEventData(MODEL_CHANNELS, model); if (o != null) { Collection<AnimChannel> values = ((HashMap<Integer, AnimChannel>) o).values(); while (values.remove(channel)); if (values.isEmpty()) { cinematic.removeEventData(MODEL_CHANNELS, model); } } cinematic = null; channel = null; } } }
this.cinematic = cinematic; if (channel == null) { Object s = cinematic.getEventData(MODEL_CHANNELS, model); if (s == null) { s = new HashMap<Integer, AnimChannel>();
@Override public void dispose() { super.dispose(); if (cinematic != null) { Object o = cinematic.getEventData(MODEL_CHANNELS, model); if (o != null) { Collection<AnimChannel> values = ((HashMap<Integer, AnimChannel>) o).values(); while (values.remove(channel)); if (values.isEmpty()) { cinematic.removeEventData(MODEL_CHANNELS, model); } } cinematic = null; channel = null; } } }
this.cinematic = cinematic; if (channel == null) { Object s = cinematic.getEventData(MODEL_CHANNELS, model); if (s == null) { s = new HashMap<Integer, AnimChannel>();