public NSOrderedSet<T> subList(int start, int end) { if (start >= 0 && end <= size()) { if (start <= end) { return new NSOrderedSet<T>(getObjectsAt(new NSIndexSet(new NSRange(start, end - start)))); } throw new IllegalArgumentException(); } throw new IndexOutOfBoundsException(); } public Object[] toArray() {
public long[] getIndexesInRange(NSRange range, @MachineSizedUInt long maxIndexes) { MachineSizedUIntPtr ptr = Struct.allocate(MachineSizedUIntPtr.class, (int)maxIndexes); long l = getIndexes(ptr, maxIndexes, range); return ptr.toLongArray((int)l); } /*<methods>*/
public NSIndexSet(NSIndexSet indexSet) { super((SkipInit) null); initObject(init(indexSet)); } public NSIndexSet(@MachineSizedUInt long value) { super((SkipInit) null); initObject(init(value)); }
public NSIndexSet(@ByVal NSRange range) { super((SkipInit) null); initObject(init(range)); } public NSIndexSet(NSIndexSet indexSet) { super((SkipInit) null); initObject(init(indexSet)); }
public NSOrderedSet<T> subList(int start, int end) { if (start >= 0 && end <= size()) { if (start <= end) { return new NSOrderedSet<T>(getObjectsAt(new NSIndexSet(new NSRange(start, end - start)))); } throw new IllegalArgumentException(); } throw new IndexOutOfBoundsException(); } public Object[] toArray() {
public long[] getIndexesInRange(NSRange range, @MachineSizedUInt long maxIndexes) { MachineSizedUIntPtr ptr = Struct.allocate(MachineSizedUIntPtr.class, (int)maxIndexes); long l = getIndexes(ptr, maxIndexes, range); return ptr.toLongArray((int)l); }
public NSIndexSet(@MachineSizedUInt long value) { super((SkipInit) null); initObject(init(value)); } /*</constructors>*/
public NSOrderedSet<T> subList(int start, int end) { if (start >= 0 && end <= size()) { if (start <= end) { return new NSOrderedSet<T>(getObjectsAt(new NSIndexSet(new NSRange(start, end - start)))); } throw new IllegalArgumentException(); } throw new IndexOutOfBoundsException(); } public Object[] toArray() {
public long[] getIndexesInRange(NSRange range, @MachineSizedUInt long maxIndexes) { MachineSizedUIntPtr ptr = Struct.allocate(MachineSizedUIntPtr.class, (int)maxIndexes); long l = getIndexes(ptr, maxIndexes, range); return ptr.toLongArray((int)l); }
@Method(selector = "initWithCoder:") public NSIndexSet(NSCoder decoder) { super((SkipInit) null); initObject(init(decoder)); } /*</constructors>*/
@Method(selector = "initWithCoder:") public NSIndexSet(NSCoder decoder) { super((SkipInit) null); initObject(init(decoder)); } /*</constructors>*/
@Method(selector = "initWithIndexSet:") public NSIndexSet(NSIndexSet indexSet) { super((SkipInit) null); initObject(init(indexSet)); } @Method(selector = "initWithIndex:")
@Method(selector = "initWithIndexSet:") public NSIndexSet(NSIndexSet indexSet) { super((SkipInit) null); initObject(init(indexSet)); } @Method(selector = "initWithIndex:")
@Method(selector = "initWithIndexesInRange:") public NSIndexSet(@ByVal NSRange range) { super((SkipInit) null); initObject(init(range)); } @Method(selector = "initWithIndexSet:")
@Method(selector = "initWithIndex:") public NSIndexSet(@MachineSizedUInt long value) { super((SkipInit) null); initObject(init(value)); } @Method(selector = "initWithCoder:")
@Method(selector = "initWithIndexesInRange:") public NSIndexSet(@ByVal NSRange range) { super((SkipInit) null); initObject(init(range)); } @Method(selector = "initWithIndexSet:")
@Method(selector = "initWithIndex:") public NSIndexSet(@MachineSizedUInt long value) { super((SkipInit) null); initObject(init(value)); } @Method(selector = "initWithCoder:")