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