Entry(Object object, int hash, T proxy, ReferenceType type, Entry<T> next, ReferenceQueue<Object> queue) { this.hash = hash; this.next = next; // references to the Java object and its proxy will either both be // weak or both be soft, since the proxy contains a strong reference // to the object, so it wouldn't make sense for the reference types // to differ. if (type == ReferenceType.WEAK) { this.objectRef = new WeakEntryRef<Object>(hash, object, queue); this.proxyRef = new WeakEntryRef<T>(hash, proxy, queue); } else { this.objectRef = new SoftEntryRef<Object>(hash, object, queue); this.proxyRef = new SoftEntryRef<T>(hash, proxy, queue); } }
Entry(Object object, int hash, T proxy, ReferenceType type, Entry<T> next, ReferenceQueue<Object> queue) { this.hash = hash; this.next = next; // references to the Java object and its proxy will either both be // weak or both be soft, since the proxy contains a strong reference // to the object, so it wouldn't make sense for the reference types // to differ. if (type == ReferenceType.WEAK) { this.objectRef = new WeakEntryRef<Object>(hash, object, queue); this.proxyRef = new WeakEntryRef<T>(hash, proxy, queue); } else { this.objectRef = new SoftEntryRef<Object>(hash, object, queue); this.proxyRef = new SoftEntryRef<T>(hash, proxy, queue); } }
Entry(Object object, int hash, T proxy, ReferenceType type, Entry<T> next, ReferenceQueue<Object> queue) { this.hash = hash; this.next = next; // references to the Java object and its proxy will either both be // weak or both be soft, since the proxy contains a strong reference // to the object, so it wouldn't make sense for the reference types // to differ. if (type == ReferenceType.WEAK) { this.objectRef = new WeakEntryRef<Object>(hash, object, queue); this.proxyRef = new WeakEntryRef<T>(hash, proxy, queue); } else { this.objectRef = new SoftEntryRef<Object>(hash, object, queue); this.proxyRef = new SoftEntryRef<T>(hash, proxy, queue); } }
Entry(Object object, int hash, T proxy, ReferenceType type, Entry<T> next, ReferenceQueue<Object> queue) { this.hash = hash; this.next = next; // references to the Java object and its proxy will either both be // weak or both be soft, since the proxy contains a strong reference // to the object, so it wouldn't make sense for the reference types // to differ. if (type == ReferenceType.WEAK) { this.objectRef = new WeakEntryRef<Object>(hash, object, queue); this.proxyRef = new WeakEntryRef<T>(hash, proxy, queue); } else { this.objectRef = new SoftEntryRef<Object>(hash, object, queue); this.proxyRef = new SoftEntryRef<T>(hash, proxy, queue); } }