public NSArray<UIFontDescriptor> getMatchingFontDescriptors(Set<UIFontDescriptorAttribute> mandatoryAttributes) { NSSet<NSString> set = new NSMutableSet<>(); for (UIFontDescriptorAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return getMatchingFontDescriptors(set); } public static UIFontDescriptor getPreferredFontDescriptor(UIFontTextStyle style) {
/** * @since Available in iOS 4.0 and later. */ public void enumerateValues(List<MPMediaEntityProperty> properties, final VoidBlock3<MPMediaEntityProperty, NSObject, Boolean> block) { NSSet<NSString> set = new NSMutableSet<>(); for (MPMediaEntityProperty property : properties) { set.add(property.value()); } enumerateValues(set, new VoidBlock3<NSString, NSObject, BooleanPtr>() { @Override public void invoke(NSString a, NSObject b, BooleanPtr c) { block.invoke(MPMediaEntityProperty.valueOf(a), b, c.get()); } }); } /*<methods>*/
@MarshalsPointer public static long toNative(Set<WKWebsiteDataType> l, long flags) { if (l == null) { return 0L; } NSSet<NSString> set = new NSMutableSet<>(); for (WKWebsiteDataType o : l) { set.add(o.value()); } return NSObject.Marshaler.toNative(set, flags); } }
public NSArray<UIFontDescriptor> getMatchingFontDescriptors(Set<UIFontDescriptorAttribute> mandatoryAttributes) { NSSet<NSString> set = new NSMutableSet<>(); for (UIFontDescriptorAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return getMatchingFontDescriptors(set); } /*<methods>*/
public NSArray<UIFontDescriptor> getMatchingFontDescriptors(Set<UIFontDescriptorAttribute> mandatoryAttributes) { NSSet<NSString> set = new NSMutableSet<>(); for (UIFontDescriptorAttribute attr : mandatoryAttributes) { set.add(attr.value()); } return getMatchingFontDescriptors(set); } /*<methods>*/
/** * @since Available in iOS 4.0 and later. */ public void enumerateValues(List<MPMediaEntityProperty> properties, final VoidBlock3<MPMediaEntityProperty, NSObject, Boolean> block) { NSSet<NSString> set = new NSMutableSet<>(); for (MPMediaEntityProperty property : properties) { set.add(property.value()); } enumerateValues(set, new VoidBlock3<NSString, NSObject, BooleanPtr>() { @Override public void invoke(NSString a, NSObject b, BooleanPtr c) { block.invoke(MPMediaEntityProperty.valueOf(a), b, c.get()); } }); } /*<methods>*/
/** * @since Available in iOS 4.0 and later. */ public void enumerateValues(List<MPMediaEntityProperty> properties, final VoidBlock3<MPMediaEntityProperty, NSObject, Boolean> block) { NSSet<NSString> set = new NSMutableSet<>(); for (MPMediaEntityProperty property : properties) { set.add(property.value()); } enumerateValues(set, new VoidBlock3<NSString, NSObject, BooleanPtr>() { @Override public void invoke(NSString a, NSObject b, BooleanPtr c) { block.invoke(MPMediaEntityProperty.valueOf(a), b, c.get()); } }); } /*<methods>*/
@MarshalsPointer public static long toNative(Set<WKWebsiteDataType> l, long flags) { if (l == null) { return 0L; } NSSet<NSString> set = new NSMutableSet<>(); for (WKWebsiteDataType o : l) { set.add(o.value()); } return NSObject.Marshaler.toNative(set, flags); } }
@MarshalsPointer public static long toNative(Set<FBSDKLoggingBehavior> l, long flags) { if (l == null) { return 0L; } NSSet<NSString> set = new NSMutableSet<>(); for (FBSDKLoggingBehavior i : l) { set.add(i.value()); } return NSObject.Marshaler.toNative(set, flags); } }
@MarshalsPointer public static long toNative(Set<FBSDKLoggingBehavior> l, long flags) { if (l == null) { return 0L; } NSSet<NSString> set = new NSMutableSet<>(); for (FBSDKLoggingBehavior i : l) { set.add(i.value()); } return NSObject.Marshaler.toNative(set, flags); } }
@MarshalsPointer public static long toNative(Set<WKWebsiteDataType> l, long flags) { if (l == null) { return 0L; } NSSet<NSString> set = new NSMutableSet<>(); for (WKWebsiteDataType o : l) { set.add(o.value()); } return NSObject.Marshaler.toNative(set, flags); } }