|
3 | 3 | import com.jme3.anim.tween.Tween; |
4 | 4 | import com.jme3.anim.tween.Tweens; |
5 | 5 | import com.jme3.anim.tween.action.*; |
6 | | -import com.jme3.export.InputCapsule; |
7 | | -import com.jme3.export.JmeExporter; |
8 | | -import com.jme3.export.JmeImporter; |
9 | | -import com.jme3.export.OutputCapsule; |
| 6 | +import com.jme3.export.*; |
10 | 7 | import com.jme3.renderer.RenderManager; |
11 | 8 | import com.jme3.renderer.ViewPort; |
12 | 9 | import com.jme3.scene.control.AbstractControl; |
@@ -209,25 +206,12 @@ public void reset() { |
209 | 206 | } |
210 | 207 | } |
211 | 208 |
|
212 | | - /** |
213 | | - * Returns an unmodifiable set of all available animations. When an attempt |
214 | | - * is made to modify the set, an UnsupportedOperationException is thrown. |
215 | | - * |
216 | | - * @return the unmodifiable set of animations |
217 | | - */ |
218 | | - public Set<AnimClip> getAnimClips() { |
219 | | - return Collections.unmodifiableSet(new HashSet<>(animClipMap.values())); |
| 209 | + public Collection<AnimClip> getAnimClips() { |
| 210 | + return Collections.unmodifiableCollection(animClipMap.values()); |
220 | 211 | } |
221 | 212 |
|
222 | | - /** |
223 | | - * Returns an unmodifiable set of all available animation names. When an |
224 | | - * attempt is made to modify the set, an UnsupportedOperationException is |
225 | | - * thrown. |
226 | | - * |
227 | | - * @return the unmodifiable set of animation names. |
228 | | - */ |
229 | | - public Set<String> getAnimClipsNames() { |
230 | | - return Collections.unmodifiableSet(animClipMap.keySet()); |
| 213 | + public Collection<String> getAnimClipsNames() { |
| 214 | + return Collections.unmodifiableCollection(animClipMap.keySet()); |
231 | 215 | } |
232 | 216 |
|
233 | 217 | @Override |
|
0 commit comments