@MarshalsPointer public static NSPersistentStoreOptions toObject(Class<NSPersistentStoreOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSPersistentStoreOptions(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<NSPersistentStoreOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSPersistentStoreOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 3.0 and later. */ public NSPersistentStoreOptions setTimeout(long timeout) { set(Keys.Timeout(), NSNumber.valueOf(timeout)); return this; } /**
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public NSPersistentStoreOptions set(NSString key, NSObject value) {
/** * @since Available in iOS 3.0 and later. */ public NSPersistentStoreOptions setInfersMappingModelAutomatically(boolean infersMappingModelAutomatically) { set(Keys.InferMappingModelAutomatically(), NSNumber.valueOf(infersMappingModelAutomatically)); return this; } /**
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public NSPersistentStoreOptions set(NSString key, NSObject value) {
/** * @since Available in iOS 5.0 and later. */ public NSPersistentStoreOptions setUbiquitousContentURL(String ubiquitousContentURL) { set(Keys.UbiquitousContentURL(), new NSString(ubiquitousContentURL)); return this; } /**
@MarshalsPointer public static List<NSPersistentStoreOptions> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<NSPersistentStoreOptions> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new NSPersistentStoreOptions(o.get(i))); } return list; } @MarshalsPointer
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public NSPersistentStoreOptions set(NSString key, NSObject value) {
@MarshalsPointer public static long toNative(List<NSPersistentStoreOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSPersistentStoreOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 3.0 and later. */ public NSPersistentStoreOptions setReadOnly(boolean readOnly) { set(Keys.ReadOnly(), NSNumber.valueOf(readOnly)); return this; } /**
@MarshalsPointer public static NSPersistentStoreOptions toObject(Class<NSPersistentStoreOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSPersistentStoreOptions(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<NSPersistentStoreOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSPersistentStoreOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 7.0 and later. */ public NSPersistentStoreOptions setUbiquitousPeerToken(String ubiquitousPeerToken) { set(Keys.UbiquitousPeerToken(), new NSString(ubiquitousPeerToken)); return this; } /**
@MarshalsPointer public static NSPersistentStoreOptions toObject(Class<NSPersistentStoreOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSPersistentStoreOptions(o); } @MarshalsPointer