public <T extends NativeObject> T getValue(ABProperty property, Class<T> type) { CFType val = getValue(property); if (val != null) return val.as(type); return null; } /*<methods>*/
public void add(CFType value) { add(value.as(VoidPtr.class)); } public void add(NSObject value) {
public long count(CFType value) { return count(value.as(VoidPtr.class)); } public long count(NSObject value) {
public boolean contains(CFType value) { return contains(value.as(VoidPtr.class)); } public boolean contains(NSObject value) {
public List<ABPersonDate> getDates() { ABMultiValue val = getValue(ABPersonProperty.Date, ABMultiValue.class); List<ABPersonDate> list = new ArrayList<>(); if (val == null) return list; long size = val.getCount(); for (int i = 0; i < size; i++) { NSDate date = val.getValue(i).as(NSDate.class); CFString label = val.getLabel(i); list.add(new ABPersonDate(date, label)); } return list; } public ABPerson setDates(List<ABPersonDate> dates) throws NSErrorException {
public <T extends NativeObject> T getValue(ABProperty property, Class<T> type) { CFType val = getValue(property); if (val != null) return val.as(type); return null; } /*<methods>*/
public <T extends NativeObject> T getValue(ABProperty property, Class<T> type) { CFType val = getValue(property); if (val != null) return val.as(type); return null; } /*<methods>*/
public boolean contains(CFType value) { return contains(value.as(VoidPtr.class)); } public boolean contains(NSObject value) {
public long count(CFType value) { return count(value.as(VoidPtr.class)); } public long count(NSObject value) {
public boolean contains(CFType value) { return contains(value.as(VoidPtr.class)); } public boolean contains(NSObject value) {
public void add(CFType value) { add(value.as(VoidPtr.class)); } public void add(NSObject value) {
public long count(CFType value) { return count(value.as(VoidPtr.class)); } public long count(NSObject value) {
public void add(CFType value) { add(value.as(VoidPtr.class)); } public void add(NSObject value) {
public List<ABPersonDate> getDates() { ABMultiValue val = getValue(ABPersonProperty.Date, ABMultiValue.class); List<ABPersonDate> list = new ArrayList<>(); if (val == null) return list; long size = val.getCount(); for (int i = 0; i < size; i++) { NSDate date = val.getValue(i).as(NSDate.class); CFString label = val.getLabel(i); list.add(new ABPersonDate(date, label)); } return list; } public ABPerson setDates(List<ABPersonDate> dates) throws NSErrorException {
public List<ABPersonDate> getDates() { ABMultiValue val = getValue(ABPersonProperty.Date, ABMultiValue.class); List<ABPersonDate> list = new ArrayList<>(); if (val == null) return list; long size = val.getCount(); for (int i = 0; i < size; i++) { NSDate date = val.getValue(i).as(NSDate.class); CFString label = val.getLabel(i); list.add(new ABPersonDate(date, label)); } return list; } public ABPerson setDates(List<ABPersonDate> dates) throws NSErrorException {