Created
July 21, 2011 13:37
-
-
Save dedeibel/1097200 to your computer and use it in GitHub Desktop.
getting a typed array from a typed set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set<MyInterface> set = new HashSet<MyInterface>(); | |
MyInterface list[] = {}; | |
MyInterface[] array = set.toArray(list); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment