public static CALineCap valueOf(NSString value) { for (CALineCap v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException( "No constant with value " + value + " found in " + /*<name>*/ CALineCap /*</name>*/.class.getName()); }
@MarshalsPointer public static long toNative(CALineCap o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); }
@MarshalsPointer public static CALineCap toObject(Class<CALineCap> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return CALineCap.valueOf(o); }