/** * @since Available in iOS 3.2 and later. */ public CTFontAttributes setFormat(CTFontFormat format) { set(CTFontAttribute.Format, CFNumber.valueOf(format.value())); return this; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontFormat getFormat() { if (has(CTFontAttribute.Format)) { CFNumber val = get(CTFontAttribute.Format, CFNumber.class); return CTFontFormat.valueOf(val.longValue()); } return null; } /**
public static /*<name>*/CTFontFormat/*</name>*/ valueOf(long n) { for (/*<name>*/CTFontFormat/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/CTFontFormat/*</name>*/.class.getName()); } }
public static /*<name>*/CTFontFormat/*</name>*/ valueOf(long n) { for (/*<name>*/CTFontFormat/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/CTFontFormat/*</name>*/.class.getName()); } }
/** * @since Available in iOS 3.2 and later. */ public CTFontFormat getFormat() { if (has(CTFontAttribute.Format)) { CFNumber val = get(CTFontAttribute.Format, CFNumber.class); return CTFontFormat.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontAttributes setFormat(CTFontFormat format) { set(CTFontAttribute.Format, CFNumber.valueOf(format.value())); return this; } /**
public static /*<name>*/CTFontFormat/*</name>*/ valueOf(long n) { for (/*<name>*/CTFontFormat/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/CTFontFormat/*</name>*/.class.getName()); } }
/** * @since Available in iOS 3.2 and later. */ public CTFontFormat getFormat() { if (has(CTFontAttribute.Format)) { CFNumber val = get(CTFontAttribute.Format, CFNumber.class); return CTFontFormat.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontAttributes setFormat(CTFontFormat format) { set(CTFontAttribute.Format, CFNumber.valueOf(format.value())); return this; } /**