All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.container.map.weak.WeakIntEntry Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.container.map.weak;

import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;

/**
 * A weak reference entry used by {@link WeakIntHashMap}.
 * 
 * @author Oliver Richers
 */
class WeakIntEntry extends WeakReference {

	private final int key;

	public WeakIntEntry(int key, V value, ReferenceQueue queue) {

		super(value, queue);
		this.key = key;
	}

	public int getKey() {

		return key;
	}

	@Override
	public String toString() {

		return "" + get();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy