@MarshalsPointer public static CVOpenGLESTextureCacheAttributes toObject(Class<CVOpenGLESTextureCacheAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVOpenGLESTextureCacheAttributes(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CVOpenGLESTextureCacheAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVOpenGLESTextureCacheAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CVOpenGLESTextureCacheAttributes set(CFString key, NativeObject value) {
/** * @since Available in iOS 5.0 and later. */ public CVOpenGLESTextureCacheAttributes setMaximumTextureAge(long maximumTextureAge) { set(Keys.MaximumTextureAge(), CFNumber.valueOf(maximumTextureAge)); return this; } /*</methods>*/
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CVOpenGLESTextureCacheAttributes set(CFString key, NativeObject value) {
/** * @since Available in iOS 5.0 and later. */ public CVOpenGLESTextureCacheAttributes setMaximumTextureAge(long maximumTextureAge) { set(Keys.MaximumTextureAge(), CFNumber.valueOf(maximumTextureAge)); return this; } /*</methods>*/
@MarshalsPointer public static List<CVOpenGLESTextureCacheAttributes> 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<CVOpenGLESTextureCacheAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVOpenGLESTextureCacheAttributes(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CVOpenGLESTextureCacheAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVOpenGLESTextureCacheAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CVOpenGLESTextureCacheAttributes set(CFString key, NativeObject value) {
/** * @since Available in iOS 5.0 and later. */ public CVOpenGLESTextureCacheAttributes setMaximumTextureAge(long maximumTextureAge) { set(Keys.MaximumTextureAge(), CFNumber.valueOf(maximumTextureAge)); return this; } /*</methods>*/
@MarshalsPointer public static CVOpenGLESTextureCacheAttributes toObject(Class<CVOpenGLESTextureCacheAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVOpenGLESTextureCacheAttributes(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CVOpenGLESTextureCacheAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVOpenGLESTextureCacheAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static CVOpenGLESTextureCacheAttributes toObject(Class<CVOpenGLESTextureCacheAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVOpenGLESTextureCacheAttributes(o); } @MarshalsPointer
@MarshalsPointer public static List<CVOpenGLESTextureCacheAttributes> 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<CVOpenGLESTextureCacheAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVOpenGLESTextureCacheAttributes(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static List<CVOpenGLESTextureCacheAttributes> 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<CVOpenGLESTextureCacheAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVOpenGLESTextureCacheAttributes(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer