Esempio n. 1
0
 @MarshalsPointer
 public static long toNative(CALineCap o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
Esempio n. 2
0
 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());
 }