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()); }
@MarshalsPointer public static CFLocaleComponent toObject(Class<CFLocaleComponent> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFLocaleComponent.valueOf(o); } @MarshalsPointer
public CFLocaleComponents set(CFLocaleComponent key, NativeObject value) { data.put(key.value(), value); return this; } /*</methods>*/
@MarshalsPointer public static List<CFLocaleComponent> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CFLocaleComponent> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFLocaleComponent.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
public boolean has(CFLocaleComponent key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CFLocaleComponent key, Class<T> type) {
@MarshalsPointer public static CFLocaleComponent toObject(Class<CFLocaleComponent> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFLocaleComponent.valueOf(o); } @MarshalsPointer
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 CFLocaleComponent toObject(Class<CFLocaleComponent> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CFLocaleComponent.valueOf(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(CFLocaleComponent o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static List<CFLocaleComponent> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CFLocaleComponent> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFLocaleComponent.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
@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 List<CFLocaleComponent> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CFLocaleComponent> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CFLocaleComponent.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
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) {
@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) {