org.databene.commons.operation
Class MinOperation<E>

java.lang.Object
  extended by org.databene.commons.operation.MinOperation<E>
All Implemented Interfaces:
Operation<E,E>

public class MinOperation<E>
extends java.lang.Object
implements Operation<E,E>

Returns the minimum of two values. If a Comparaotr is provided, that one is used, else it is assumed that E implements Comparable.

Created: 03.08.2007 07:40:14

Author:
Volker Bergmann

Constructor Summary
MinOperation()
           
MinOperation(java.util.Comparator<E> comparator)
           
 
Method Summary
 E perform(E... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinOperation

public MinOperation()

MinOperation

public MinOperation(java.util.Comparator<E> comparator)
Method Detail

perform

public E perform(E... args)
Specified by:
perform in interface Operation<E,E>


Copyright © 2010. All Rights Reserved.