public static /*<name>*/CFLocaleComponent/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CFLocaleComponent/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CFLocaleComponent/*</name>*/.class.getName()); }
public CFLocaleComponents set(CFLocaleComponent key, NativeObject value) { data.put(key.value(), value); return this; } /*</methods>*/
public boolean has(CFLocaleComponent key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CFLocaleComponent key, Class<T> type) {
public <T extends NativeObject> T get(CFLocaleComponent key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CFLocaleComponents set(CFLocaleComponent key, NativeObject value) {
@MarshalsPointer public static long toNative(CFLocaleComponent o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static long toNative(List<CFLocaleComponent> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CFLocaleComponent o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
public CFLocaleComponents set(CFLocaleComponent key, NativeObject value) { data.put(key.value(), value); return this; } /*</methods>*/
public static /*<name>*/CFLocaleComponent/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CFLocaleComponent/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CFLocaleComponent/*</name>*/.class.getName()); }
public CFLocaleComponents set(CFLocaleComponent key, NativeObject value) { data.put(key.value(), value); return this; } /*</methods>*/
public static /*<name>*/CFLocaleComponent/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CFLocaleComponent/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CFLocaleComponent/*</name>*/.class.getName()); }
public boolean has(CFLocaleComponent key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CFLocaleComponent key, Class<T> type) {
public boolean has(CFLocaleComponent key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CFLocaleComponent key, Class<T> type) {
public <T extends NativeObject> T get(CFLocaleComponent key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CFLocaleComponents set(CFLocaleComponent key, NativeObject value) {
@MarshalsPointer public static long toNative(CFLocaleComponent o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static long toNative(CFLocaleComponent o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
public <T extends NativeObject> T get(CFLocaleComponent key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CFLocaleComponents set(CFLocaleComponent key, NativeObject value) {
@MarshalsPointer public static long toNative(List<CFLocaleComponent> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CFLocaleComponent o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static long toNative(List<CFLocaleComponent> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CFLocaleComponent o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }