Exemplo n.º 1
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<NSStreamSOCKSProxyVersion> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<NSStreamSOCKSProxyVersion> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(NSStreamSOCKSProxyVersion.valueOf(o.get(i)));
   }
   return list;
 }
Exemplo n.º 2
0
 @MarshalsPointer
 public static List<NSFileSystemAttributes> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSDictionary> o =
       (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<NSFileSystemAttributes> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new NSFileSystemAttributes(o.get(i)));
   }
   return list;
 }
Exemplo n.º 3
0
 @MarshalsPointer
 public static List<NSNetServiceErrorUserInfo> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSDictionary<NSString, NSObject>> o =
       (NSArray<NSDictionary<NSString, NSObject>>)
           NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<NSNetServiceErrorUserInfo> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new NSNetServiceErrorUserInfo(o.get(i)));
   }
   return list;
 }