Пример #1
0
 public static NSFileSystemAttribute valueOf(NSString value) {
   for (NSFileSystemAttribute v : values) {
     if (v.value().equals(value)) {
       return v;
     }
   }
   throw new IllegalArgumentException(
       "No constant with value "
           + value
           + " found in "
           + /*<name>*/ NSFileSystemAttribute /*</name>*/.class.getName());
 }
Пример #2
0
 public NSObject get(NSFileSystemAttribute key) {
   if (has(key)) {
     return data.get(key.value());
   }
   return null;
 }
Пример #3
0
 public NSFileSystemAttributes set(NSFileSystemAttribute key, NSObject value) {
   data.put(key.value(), value);
   return this;
 }
Пример #4
0
 /*<methods>*/
 public boolean has(NSFileSystemAttribute key) {
   return data.containsKey(key.value());
 }