Changeset 31095 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Jul 26, 2010 8:31:46 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64047
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/glue-java.xsl ¶
r31070 r31095 2384 2384 } 2385 2385 2386 @SuppressWarnings( "unchecked") 2386 2387 public static <T> T[] unwrap(Class<T> wrapperClass, List<T> thisPtrs) { 2387 2388 if (thisPtrs==null) … … 2392 2393 } 2393 2394 2395 @SuppressWarnings( "unchecked" ) 2394 2396 public static <T> T queryInterface(Object obj, String uuid, Class<T> iface) 2395 2397 { … … 2409 2411 } 2410 2412 2413 @SuppressWarnings("unchecked") 2411 2414 public static <T1 extends IUnknown,T2> T2[] unwrap2(Class<T1> wrapperClass1, Class<T2> wrapperClass2, List<T1> thisPtrs) { 2412 2415 if (thisPtrs==null || thisPtrs.size() == 0) return null; … … 3207 3210 } 3208 3211 3212 @SuppressWarnings("unchecked" ) 3209 3213 public static <T1 extends Enum <T1>, T2 extends Enum <T2>> List<T2> convertEnums(Class<T1> fromClass, 3210 3214 Class<T2> toClass, … … 3216 3220 List<T2> ret = new ArrayList<T2>(values.size()); 3217 3221 for (T1 v : values) { 3218 // static method is called with null this 3222 // static method is called with null this 3219 3223 ret.add((T2)fromValue.invoke(null, v.name())); 3220 3224 }
Note:
See TracChangeset
for help on using the changeset viewer.