public NSTextTabOptions set(NSString key, NSObject value) { data.put(key, value); return this; } /*</methods>*/
public String getSound() { if (data.containsKey(SOUND)) { NSString val = (NSString) data.get(SOUND); return val.toString(); } return null; }
public static <V extends NSObject> NSDictionary<NSString, V> fromStringMap (Map<String, V> map) { Map<NSString, V> dictionary = new HashMap<>(); for (Map.Entry<String, V> entry : map.entrySet()) { dictionary.put(new NSString(entry.getKey()), entry.getValue()); } return new NSDictionary<NSString, V>(dictionary); }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public NSPersistentStoreOptions set(NSString key, NSObject value) {
@Override public void invoke(NSNotification notification) { NSDictionary<?, ?> data = notification.getUserInfo(); NSURLResponse urlResponse = null; String body = null; if (data != null) { urlResponse = (NSURLResponse) data.get(NotificationURLResponseUserInfoKey()); body = data.getString(NotificationURLResponseBodyUserInfoKey()); } block.invoke(urlResponse, body); } });
/** * @since Available in iOS 4.0 and later. */ public CMSampleBufferAttachment setTrimDurationAtStart(CMTime trimDurationAtStart) { set(CMSampleBufferAttachmentKey.TrimDurationAtStart, trimDurationAtStart.asDictionary(null).as(CFDictionary.class)); return this; } /**
@Override public String getString(String key, String defaultValue) { return preferences.getString(key, defaultValue); } }
public boolean has(NSString key) { return data.containsKey(key); } public NSObject get(NSString key) {
/** * @since Available in iOS 4.0 and later. */ public AVPixelAspectRatio getPixelAspectRatio() { if (has(Keys.PixelAspectRatio())) { NSDictionary<NSString, NSObject> val = (NSDictionary<NSString, NSObject>) get(Keys.PixelAspectRatio()); AVPixelAspectRatio result = new AVPixelAspectRatio(val.getLong(AVPixelAspectRatio.HorizontalSpacing(), 0), val.getLong(AVPixelAspectRatio.VerticalSpacing(), 0)); return result; } return null; } /**
@Override public void remove(String key) { preferences.remove(key); }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; }
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes getAttributes(CVAttachmentMode attachmentMode) { return new CVImageBufferAttributes(getAttachments(attachmentMode).as(CFDictionary.class)); } /**
public String getString(String key) { return data.getString(key, null); } }
/** * @since Available in iOS 4.0 and later. */ public AVPixelAspectRatio getPixelAspectRatio() { if (data.containsKey(AVVideoSettings.Keys.PixelAspectRatio())) { NSDictionary<?, ?> val = data.get(AVVideoSettings.Keys.PixelAspectRatio(), NSDictionary.class); AVPixelAspectRatio result = new AVPixelAspectRatio(val.getLong(AVPixelAspectRatio.HorizontalSpacing(), 0), val.getLong(AVPixelAspectRatio.VerticalSpacing(), 0)); return result; } return null; } /**
public long getBadgeNumber() { if (data.containsKey(BADGE)) { NSString val = (NSString) data.get(BADGE); return Long.valueOf(val.toString()); } return -1; } public String getSound() {
public NSAttributedStringDocumentAttributes set(String key, NSObject value) { data.put(new NSString(key), value); return this; } /*<methods>*/
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public CBConnectPeripheralOptions set(NSString key, NSObject value) {