Module org.scijava.ops.engine
Class IdentityLossReporter<U,T extends U>
- java.lang.Object
-
- org.scijava.ops.engine.conversionLoss.impl.IdentityLossReporter<U,T>
-
- Type Parameters:
T- - the type that is not being converted.
- All Implemented Interfaces:
BiFunction<Nil<T>,Nil<U>,Double>,LossReporter<T,U>,Op
public class IdentityLossReporter<U,T extends U> extends Object implements LossReporter<T,U>, Op
ALossReporterused when a type is not converted.- Author:
- Gabriel Selzer
- See Also:
IdentityCollection
-
-
Constructor Summary
Constructors Constructor Description IdentityLossReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleapply(Nil<T> t, Nil<U> u)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
public Double apply(Nil<T> t, Nil<U> u)
- Specified by:
applyin interfaceBiFunction<Nil<T extends U>,Nil<U>,Double>- Specified by:
applyin interfaceLossReporter<U,T extends U>- Parameters:
t- the Nil describing the type that is being converted fromu- the Nil describing the type that is being converted to- Returns:
- the worst-case loss converting from type T to type T (i.e. 0)
-
-