@Override public V remove(Object key) { if (key == null) throw new IllegalArgumentException("key cannot be null"); V oldValue = get(key); if (key instanceof NSObject) { removeObject((NSObject) key); } else { String strKey = String.valueOf(key); removeObjectForKey$(NSString.create(NSString.getChars(strKey), strKey.length())); } return oldValue; }
protected NSObject getObjectForKey(Object key) { if (key == null) throw new IllegalArgumentException("key cannot be null"); if (key instanceof NSObject) { return objectForKey$(((NSObject)key).getHandle()); } else { String strKey = String.valueOf(key); return objectForKey$(NSString.create(NSString.getChars(strKey), strKey.length())); } } @Method(selector = "objectForKey:")
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGSize getSize(String str, NSDictionary<NSString, NSObject> attrs) { return NSStringExtensions.getSize(create(getChars(str), str.length()), attrs); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, NSDictionary<NSString, NSObject> attributes, NSStringDrawingContext context) { return NSStringExtensions.getBoundingRect(create(getChars(str), str.length()), size, options, attributes, context); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGPoint point, NSDictionary<NSString, NSObject> attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), point, attrs); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSDictionary<NSString, NSObject> attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSStringDrawingOptions options, NSDictionary<NSString, NSObject> attributes, NSStringDrawingContext context) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, options, attributes, context); } /**
protected void putObject(Object key, NSObject value) { if (key == null) throw new IllegalArgumentException("key cannot be null"); if (value == null) value = NSNull.getNull(); if (key instanceof NSObject) { setObject$forKey$(value, ((NSObject)key).getHandle()); } else { String strKey = String.valueOf(key); setObject$forKey$(value, NSString.create(NSString.getChars(strKey), strKey.length())); } }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, options, attributes.getDictionary(), context); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSAttributedStringAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs.getDictionary()); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGSize getSize(String str, NSAttributedStringAttributes attrs) { return NSStringExtensions.getSize(create(getChars(str), str.length()), attrs.getDictionary()); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGPoint point, CMTextMarkupAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), point, attrs.getDictionary().as(NSDictionary.class)); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGPoint point, CTAttributedStringAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), point, attrs.getDictionary().as(NSDictionary.class)); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, CMTextMarkupAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs.getDictionary().as(NSDictionary.class)); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context) { return NSStringExtensions.getBoundingRect(create(getChars(str), str.length()), size, options, attributes.getDictionary().as(NSDictionary.class), context); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGSize getSize(String str, CMTextMarkupAttributes attrs) { return NSStringExtensions.getSize(create(getChars(str), str.length()), attrs.getDictionary().as(NSDictionary.class)); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, options, attributes.getDictionary().as(NSDictionary.class), context); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, CTAttributedStringAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs.getDictionary().as(NSDictionary.class)); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context) { return NSStringExtensions.getBoundingRect(create(getChars(str), str.length()), size, options, attributes.getDictionary().as(NSDictionary.class), context); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGSize getSize(String str, CTAttributedStringAttributes attrs) { return NSStringExtensions.getSize(create(getChars(str), str.length()), attrs.getDictionary().as(NSDictionary.class)); }