package org.grouplens.reflens.util;

public interface DoubleFunction {
	double apply(double v);
	
	public static class Identity implements DoubleFunction {
		public double apply(double v) {
			return v;
		}
	}
}

package org.grouplens.reflens.util;

public interface DoubleFunction {
	double apply(double v);
	
	public static final class Identity implements DoubleFunction {
		public double apply(double v) {
			return v;
		}
	}
}

Make Identity double function final.
Make Identity double function final.
