Пример #1
0
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
 /** @since Available in iOS 7.0 and later. */
 public boolean isVolumePurchase() {
   if (data.containsKey(IsVolumePurchaseKey())) {
     NSNumber val = (NSNumber) data.get(IsVolumePurchaseKey());
     return val.booleanValue();
   }
   return false;
 }
 /** @since Available in iOS 7.0 and later. */
 public boolean isExpired() {
   if (data.containsKey(IsExpiredKey())) {
     NSNumber val = (NSNumber) data.get(IsExpiredKey());
     return val.booleanValue();
   }
   return false;
 }
Пример #4
0
 /** @since Available in iOS 6.0 and later. */
 public boolean isTracking() {
   if (has(Keys.Tracking())) {
     NSNumber val = (NSNumber) get(Keys.Tracking());
     return val.booleanValue();
   }
   return false;
 }
Пример #5
0
 public long getSize() {
   if (has(NSFileSystemAttribute.Size)) {
     NSNumber val = (NSNumber) get(NSFileSystemAttribute.Size);
     return val.longValue();
   }
   return 0;
 }
Пример #6
0
 public boolean usesSoftwareRenderer() {
   if (has(Keys.UseSoftwareRenderer())) {
     NSNumber val = (NSNumber) get(Keys.UseSoftwareRenderer());
     return val.booleanValue();
   }
   return false;
 }
Пример #7
0
 /** @since Available in iOS 8.0 and later. */
 public boolean requestsLowPriority() {
   if (has(Keys.PriorityRequestLow())) {
     NSNumber val = (NSNumber) get(Keys.PriorityRequestLow());
     return val.booleanValue();
   }
   return false;
 }
Пример #8
0
 /** @since Available in iOS 6.0 and later. */
 public double getMinFeatureSize() {
   if (has(Keys.MinFeatureSize())) {
     NSNumber val = (NSNumber) get(Keys.MinFeatureSize());
     return val.doubleValue();
   }
   return 0;
 }
Пример #9
0
 /** @since Available in iOS 8.0 and later. */
 public CIFormat getWorkingFormat() {
   if (has(Keys.WorkingFormat())) {
     NSNumber val = (NSNumber) get(Keys.WorkingFormat());
     return CIFormat.valueOf(val.intValue());
   }
   return null;
 }
Пример #10
0
 public long getFreeNodes() {
   if (has(NSFileSystemAttribute.FreeNodes)) {
     NSNumber val = (NSNumber) get(NSFileSystemAttribute.FreeNodes);
     return val.longValue();
   }
   return 0;
 }
Пример #11
0
 /** @since Available in iOS 6.0 and later. */
 public CIDetectorOptions setTracking(boolean tracking) {
   set(Keys.Tracking(), NSNumber.valueOf(tracking));
   return this;
 }
 /** @since Available in iOS 7.0 and later. */
 public SKReceiptRefreshRequestOptions setVolumePurchase(boolean volumePurchase) {
   data.put(IsVolumePurchaseKey(), NSNumber.valueOf(volumePurchase));
   return this;
 }
Пример #13
0
 /** @since Available in iOS 2.0 and later. */
 public NSStream setCurrentOffset(long offset) {
   setProperty(NSStreamProperty.FileCurrentOffset, NSNumber.valueOf(offset));
   return this;
 }
Пример #14
0
 /** @since Available in iOS 2.0 and later. */
 public long getCurrentOffset() {
   NSNumber val = (NSNumber) getProperty(NSStreamProperty.FileCurrentOffset);
   return val.longValue();
 }
Пример #15
0
 public NSFileSystemAttributes setFreeNodes(long freeNodes) {
   set(NSFileSystemAttribute.FreeNodes, NSNumber.valueOf(freeNodes));
   return this;
 }
Пример #16
0
 public NSFileSystemAttributes setNodes(long nodes) {
   set(NSFileSystemAttribute.Nodes, NSNumber.valueOf(nodes));
   return this;
 }
Пример #17
0
 public NSFileSystemAttributes setFreeSize(long freeSize) {
   set(NSFileSystemAttribute.FreeSize, NSNumber.valueOf(freeSize));
   return this;
 }
Пример #18
0
 public NSFileSystemAttributes setSize(long size) {
   set(NSFileSystemAttribute.Size, NSNumber.valueOf(size));
   return this;
 }
Пример #19
0
 /** @since Available in iOS 6.0 and later. */
 public CIDetectorOptions setMinFeatureSize(double minFeatureSize) {
   set(Keys.MinFeatureSize(), NSNumber.valueOf(minFeatureSize));
   return this;
 }
Пример #20
0
 public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) {
   set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value()));
   return this;
 }
Пример #21
0
 /** @since Available in iOS 8.0 and later. */
 public CIContextOptions setWorkingFormat(CIFormat workingFormat) {
   set(Keys.WorkingFormat(), NSNumber.valueOf(workingFormat.value()));
   return this;
 }
 /** @since Available in iOS 7.0 and later. */
 public SKReceiptRefreshRequestOptions setExpired(boolean expired) {
   data.put(IsExpiredKey(), NSNumber.valueOf(expired));
   return this;
 }
Пример #23
0
 public CIContextOptions setUsesSoftwareRenderer(boolean usesSoftwareRenderer) {
   set(Keys.UseSoftwareRenderer(), NSNumber.valueOf(usesSoftwareRenderer));
   return this;
 }
 /** @since Available in iOS 7.0 and later. */
 public SKReceiptRefreshRequestOptions setRevoked(boolean revoked) {
   data.put(IsRevokedKey(), NSNumber.valueOf(revoked));
   return this;
 }
Пример #25
0
 /** @since Available in iOS 8.0 and later. */
 public CIContextOptions setRequestsLowPriority(boolean requestsLowPriority) {
   set(Keys.PriorityRequestLow(), NSNumber.valueOf(requestsLowPriority));
   return this;
 }
Пример #26
0
 public NSFileSystemAttributes setSystemNumber(long systemNumber) {
   set(NSFileSystemAttribute.Number, NSNumber.valueOf(systemNumber));
   return this;
 }