@MarshalsPointer public static List<CFURLUbiquitousItemDownloadingStatus> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CFURLUbiquitousItemDownloadingStatus> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFURLUbiquitousItemDownloadingStatus.valueOf(o.get(i, CFString.class))); } return list; }
@MarshalsPointer public static List<CMImageDescriptionFlavor> toObject( Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CMImageDescriptionFlavor> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CMImageDescriptionFlavor.valueOf(o.get(i, CFString.class))); } return list; }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<AVMetadataFormat> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<AVMetadataFormat> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(AVMetadataFormat.valueOf(o.get(i))); } return list; }