org.ojalgo.array.visitor
Class ReferenceTypePlain<N extends Number>

java.lang.Object
  extended by org.ojalgo.array.visitor.ReferenceTypePlain<N>
All Implemented Interfaces:
Cloneable, Aggregator<N>, ArrayVisitor<N>

public class ReferenceTypePlain<N extends Number>
extends Object
implements Aggregator<N>


Constructor Summary
ReferenceTypePlain(N anInit, BinaryFunction<N> anAggregator)
           
 
Method Summary
 double doubleValue()
           
 N getNumber()
           
 void invoke(double anArg)
           
 void invoke(N anArg)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceTypePlain

public ReferenceTypePlain(N anInit,
                          BinaryFunction<N> anAggregator)
Method Detail

doubleValue

public double doubleValue()
Specified by:
doubleValue in interface Aggregator<N extends Number>

getNumber

public N getNumber()
Specified by:
getNumber in interface Aggregator<N extends Number>

invoke

public void invoke(double anArg)
Specified by:
invoke in interface ArrayVisitor<N extends Number>

invoke

public void invoke(N anArg)
Specified by:
invoke in interface ArrayVisitor<N extends Number>

reset

public void reset()
Specified by:
reset in interface ArrayVisitor<N extends Number>