public boolean has(CFString key) { return data.containsKey(key); } public <T extends NativeObject> T get(CFString key, Class<T> type) {
public boolean has(CFString key) { return data.containsKey(key); } public <T extends NativeObject> T get(CFString key, Class<T> type) {
public boolean has(CFString key) { return data.containsKey(key); } public <T extends NativeObject> T get(CFString key, Class<T> type) {
public boolean has(CFString key) { return data.containsKey(key); } public <T extends NativeObject> T get(CFString key, Class<T> type) {
/** * @since Available in iOS 8.0 and later. */ public NSCalendarIdentifier getCalendarIdentifier() { if (data.containsKey(CalendarIdentifierKey())) { NSString val = data.get(CalendarIdentifierKey(), NSString.class); return NSCalendarIdentifier.valueOf(val); } return null; } /**
/** * @since Available in iOS 8.0 and later. */ public long getMonth() { if (data.containsKey(MonthKey())) { NSNumber val = data.get(MonthKey(), NSNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 8.0 and later. */ public boolean isLeapMonth() { if (data.containsKey(IsLeapMonthKey())) { CFNumber val = data.get(IsLeapMonthKey(), CFNumber.class); return val.charValue() != 0; } return false; } /**
public String getAddressPart(ABPersonAddressPart part) { if (data.containsKey(part.value())) { CFString val = data.get(part.value(), CFString.class); return val.toString(); } return null; } public ABPersonAddress setAddressPart(ABPersonAddressPart part, String s) {
/** * @since Available in iOS 5.0 and later. */ public String getUsername() { if (data.containsKey(UsernameKey())) { CFString val = data.get(UsernameKey(), CFString.class); return val.toString(); } return null; } /**
/** * @since Available in iOS 5.0 and later. */ public AVVideoScalingMode getScalingMode() { if (data.containsKey(AVVideoSettings.Keys.ScalingMode())) { NSString val = data.get(AVVideoSettings.Keys.ScalingMode(), NSString.class); return AVVideoScalingMode.valueOf(val); } return null; } /**
public String getUsername() { if (data.containsKey(UsernameKey())) { CFString val = data.get(UsernameKey(), CFString.class); return val.toString(); } return null; } public ABPersonInstantMessageAccount setUsername(String username) {
/** * @since Available in iOS 5.0 and later. */ public String getURL() { if (data.containsKey(URLKey())) { CFString val = data.get(URLKey(), CFString.class); return val.toString(); } return null; } /**
/** * @since Available in iOS 5.0 and later. */ public ABPersonSocialProfileService getService() { if (data.containsKey(ServiceKey())) { CFString val = data.get(ServiceKey(), CFString.class); return ABPersonSocialProfileService.valueOf(val); } return null; } /**
/** * @since Available in iOS 5.0 and later. */ public String getUserIdentifier() { if (data.containsKey(UserIdentifierKey())) { CFString val = data.get(UserIdentifierKey(), CFString.class); return val.toString(); } return null; } /**
/** * @since Available in iOS 8.0 and later. */ public long getEra() { if (data.containsKey(EraKey())) { NSNumber val = data.get(EraKey(), NSNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 8.0 and later. */ public long getYear() { if (data.containsKey(YearKey())) { NSNumber val = data.get(YearKey(), NSNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ @SuppressWarnings("unchecked") public AVVideoCleanAperture getCleanAperture() { if (data.containsKey(AVVideoSettings.Keys.CleanAperture())) { NSDictionary<NSString, NSObject> val = data.get(AVVideoSettings.Keys.CleanAperture(), NSDictionary.class); return new AVVideoCleanAperture(val); } return null; } /**
public ABPersonInstantMessageService getService() { if (data.containsKey(ServiceKey())) { CFString val = data.get(ServiceKey(), CFString.class); return ABPersonInstantMessageService.valueOf(val); } return null; } public ABPersonInstantMessageAccount setService(ABPersonInstantMessageService service) {
/** * @since Available in iOS 8.0 and later. */ public long getDay() { if (data.containsKey(DayKey())) { NSNumber val = data.get(DayKey(), NSNumber.class); return val.longValue(); } return 0; } /**
/** * @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; } /**