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

org.mutabilitydetector.benchmarks.Fakeout Maven / Gradle / Ivy

There is a newer version: 0.10.6
Show newest version
package org.mutabilitydetector.benchmarks;

import java.util.IdentityHashMap;
import java.util.Map;

/**
 * Benchmark discussed on the project lombok mailing list,  here
 * 
 */
public final class Fakeout {
	private static final Map map = new IdentityHashMap();

	public Fakeout() {
		map.put(this, 0);
	}

	public void setAge(int age) {
		map.put(this, age);
	}

	public int getAge() {
		return map.get(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy