public static /*<name>*/AVSampleRateConverterAlgorithm/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/AVSampleRateConverterAlgorithm/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/AVSampleRateConverterAlgorithm/*</name>*/.class.getName()); }
@MarshalsPointer public static AVSampleRateConverterAlgorithm toObject(Class<AVSampleRateConverterAlgorithm> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return AVSampleRateConverterAlgorithm.valueOf(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(AVSampleRateConverterAlgorithm o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<AVSampleRateConverterAlgorithm> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<AVSampleRateConverterAlgorithm> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(AVSampleRateConverterAlgorithm.valueOf(o.get(i))); } return list; } @MarshalsPointer
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterSettings setAlgorithm(AVSampleRateConverterAlgorithm algorithm) { set(Keys.Algorithm(), algorithm.value()); return this; } public AVAudioQuality getAudioQuality() {
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterAlgorithm getAlgorithm() { if (has(Keys.Algorithm())) { NSString val = (NSString) get(Keys.Algorithm()); return AVSampleRateConverterAlgorithm.valueOf(val); } return null; } /**
@MarshalsPointer public static long toNative(List<AVSampleRateConverterAlgorithm> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (AVSampleRateConverterAlgorithm o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static AVSampleRateConverterAlgorithm toObject(Class<AVSampleRateConverterAlgorithm> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return AVSampleRateConverterAlgorithm.valueOf(o); } @MarshalsPointer
public static /*<name>*/AVSampleRateConverterAlgorithm/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/AVSampleRateConverterAlgorithm/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/AVSampleRateConverterAlgorithm/*</name>*/.class.getName()); }
@MarshalsPointer public static AVSampleRateConverterAlgorithm toObject(Class<AVSampleRateConverterAlgorithm> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return AVSampleRateConverterAlgorithm.valueOf(o); } @MarshalsPointer
public static /*<name>*/AVSampleRateConverterAlgorithm/*</name>*/ valueOf(/*<type>*/NSString/*</type>*/ value) { for (/*<name>*/AVSampleRateConverterAlgorithm/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/AVSampleRateConverterAlgorithm/*</name>*/.class.getName()); }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<AVSampleRateConverterAlgorithm> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<AVSampleRateConverterAlgorithm> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(AVSampleRateConverterAlgorithm.valueOf(o.get(i))); } return list; } @MarshalsPointer
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterSettings setAlgorithm(AVSampleRateConverterAlgorithm algorithm) { set(Keys.Algorithm(), algorithm.value()); return this; } public AVAudioQuality getAudioQuality() {
@SuppressWarnings("unchecked") @MarshalsPointer public static List<AVSampleRateConverterAlgorithm> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<AVSampleRateConverterAlgorithm> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(AVSampleRateConverterAlgorithm.valueOf(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(AVSampleRateConverterAlgorithm o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterAlgorithm getAlgorithm() { if (has(Keys.Algorithm())) { NSString val = (NSString) get(Keys.Algorithm()); return AVSampleRateConverterAlgorithm.valueOf(val); } return null; } /**
@MarshalsPointer public static long toNative(AVSampleRateConverterAlgorithm o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); } }
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterAlgorithm getAlgorithm() { if (has(Keys.Algorithm())) { NSString val = (NSString) get(Keys.Algorithm()); return AVSampleRateConverterAlgorithm.valueOf(val); } return null; } /**
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterSettings setAlgorithm(AVSampleRateConverterAlgorithm algorithm) { set(Keys.Algorithm(), algorithm.value()); return this; } public AVAudioQuality getAudioQuality() {
@MarshalsPointer public static long toNative(List<AVSampleRateConverterAlgorithm> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (AVSampleRateConverterAlgorithm o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); } }