예제 #1
0
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
예제 #2
0
 public long getFreeNodes() {
   if (has(NSFileSystemAttribute.FreeNodes)) {
     NSNumber val = (NSNumber) get(NSFileSystemAttribute.FreeNodes);
     return val.longValue();
   }
   return 0;
 }
예제 #3
0
 public long getSize() {
   if (has(NSFileSystemAttribute.Size)) {
     NSNumber val = (NSNumber) get(NSFileSystemAttribute.Size);
     return val.longValue();
   }
   return 0;
 }
예제 #4
0
 public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) {
   set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value()));
   return this;
 }
예제 #5
0
 public NSFileSystemAttributes setFreeNodes(long freeNodes) {
   set(NSFileSystemAttribute.FreeNodes, NSNumber.valueOf(freeNodes));
   return this;
 }
예제 #6
0
 public NSFileSystemAttributes setNodes(long nodes) {
   set(NSFileSystemAttribute.Nodes, NSNumber.valueOf(nodes));
   return this;
 }
예제 #7
0
 public NSFileSystemAttributes setFreeSize(long freeSize) {
   set(NSFileSystemAttribute.FreeSize, NSNumber.valueOf(freeSize));
   return this;
 }
예제 #8
0
 public NSFileSystemAttributes setSize(long size) {
   set(NSFileSystemAttribute.Size, NSNumber.valueOf(size));
   return this;
 }
예제 #9
0
 public NSFileSystemAttributes setSystemNumber(long systemNumber) {
   set(NSFileSystemAttribute.Number, NSNumber.valueOf(systemNumber));
   return this;
 }