/** Convert this object to its native type (a {@link Pointer}). */ @Override public Object toNative() { return getPointer(); }
/** Instances of <code>PointerType</code> with identical pointers compare * equal by default. */ @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof PointerType) { Pointer p = ((PointerType)o).getPointer(); if (pointer == null) { return p == null; } return pointer.equals(p); } return false; }
/** Convert this object to its native type (a {@link Pointer}). */ @Override public Object toNative() { return getPointer(); }
/** Convert this object to its native type (a {@link Pointer}). */ public Object toNative() { return getPointer(); }
public static long getAddress(PointerType p) { return p.getPointer().peer; } public static Pointer fromAddress(long peer) {
public static long getAddress(PointerType p) { return p.getPointer().peer; } public static Pointer fromAddress(long peer) {
public StringPointer(PointerType p) { this(p.getPointer(), 0); } public StringPointer(Pointer p) {
public WStringPointer(PointerType p) { this(p.getPointer(), 0); } public WStringPointer(Pointer p) {
public WStringPointer(PointerType p) { this(p.getPointer(), 0); } public WStringPointer(Pointer p) {
public StringPointer(PointerType p) { this(p.getPointer(), 0); } public StringPointer(Pointer p) {
/** Instances of <code>PointerType</code> with identical pointers compare * equal by default. */ public boolean equals(Object o) { if (o instanceof PointerType) { Pointer p = ((PointerType)o).getPointer(); if (pointer == null) return p == null; return pointer.equals(p); } return false; } }
/** Instances of <code>PointerType</code> with identical pointers compare * equal by default. */ @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof PointerType) { Pointer p = ((PointerType)o).getPointer(); if (pointer == null) { return p == null; } return pointer.equals(p); } return false; }
public void set(T value) { this.value = value; getPointer().setPointer(0, value.getPointer()); } }
public void set(T value) { this.value = value; getPointer().setPointer(0, value.getPointer()); } }
public void setValue(T value) { getPointer().setPointer(0, value==null ? null : value.getPointer() ); }
public void setValue(T value) { getPointer().setPointer(0, value==null ? null : value.getPointer() ); }