public static /*<name>*/CFBundleInfoKey/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CFBundleInfoKey/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CFBundleInfoKey/*</name>*/.class.getName()); }
@MarshalsPointer public static CFBundleInfoKey toObject(Class<CFBundleInfoKey> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFBundleInfoKey.valueOf(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(CFBundleInfoKey o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static List<CFBundleInfoKey> 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<CFBundleInfoKey> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFBundleInfoKey.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CFBundleInfoKey> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CFBundleInfoKey o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static CFBundleInfoKey toObject(Class<CFBundleInfoKey> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFBundleInfoKey.valueOf(o); } @MarshalsPointer
public static /*<name>*/CFBundleInfoKey/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CFBundleInfoKey/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CFBundleInfoKey/*</name>*/.class.getName()); }
@MarshalsPointer public static CFBundleInfoKey toObject(Class<CFBundleInfoKey> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFBundleInfoKey.valueOf(o); } @MarshalsPointer
public static /*<name>*/CFBundleInfoKey/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CFBundleInfoKey/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CFBundleInfoKey/*</name>*/.class.getName()); }
@MarshalsPointer public static List<CFBundleInfoKey> 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<CFBundleInfoKey> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFBundleInfoKey.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(CFBundleInfoKey o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static List<CFBundleInfoKey> 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<CFBundleInfoKey> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFBundleInfoKey.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(CFBundleInfoKey o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static long toNative(List<CFBundleInfoKey> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CFBundleInfoKey o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static long toNative(List<CFBundleInfoKey> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CFBundleInfoKey o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }