@MarshalsPointer public static NSFileSystemAttributes toObject(Class<NSFileSystemAttributes> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSFileSystemAttributes(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<NSFileSystemAttributes> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSFileSystemAttributes i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSFileSystemAttributes setSystemNumber(long systemNumber) { set(NSFileSystemAttribute.Number, NSNumber.valueOf(systemNumber)); return this; } public long getSize() {
public NSObject get(NSFileSystemAttribute key) { if (has(key)) { return data.get(key.value()); } return null; } public NSFileSystemAttributes set(NSFileSystemAttribute key, NSObject value) {
public NSFileSystemAttributes setFreeNodes(long freeNodes) { set(NSFileSystemAttribute.FreeNodes, NSNumber.valueOf(freeNodes)); return this; } /*</methods>*/
public NSObject get(NSFileSystemAttribute key) { if (has(key)) { return data.get(key.value()); } return null; } public NSFileSystemAttributes set(NSFileSystemAttribute key, NSObject value) {
public NSFileSystemAttributes setSize(long size) { set(NSFileSystemAttribute.Size, NSNumber.valueOf(size)); return this; } public long getFreeSize() {
@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; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<NSFileSystemAttributes> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSFileSystemAttributes i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSObject get(NSFileSystemAttribute key) { if (has(key)) { return data.get(key.value()); } return null; } public NSFileSystemAttributes set(NSFileSystemAttribute key, NSObject value) {
public NSFileSystemAttributes setFreeSize(long freeSize) { set(NSFileSystemAttribute.FreeSize, NSNumber.valueOf(freeSize)); return this; } public long getNodes() {
@MarshalsPointer public static NSFileSystemAttributes toObject(Class<NSFileSystemAttributes> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSFileSystemAttributes(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<NSFileSystemAttributes> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (NSFileSystemAttributes i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSFileSystemAttributes setNodes(long nodes) { set(NSFileSystemAttribute.Nodes, NSNumber.valueOf(nodes)); return this; } public long getFreeNodes() {
@MarshalsPointer public static NSFileSystemAttributes toObject(Class<NSFileSystemAttributes> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new NSFileSystemAttributes(o); } @MarshalsPointer