Save This Page
Home » mahout-collections-1.0-src » org.apache.mahout.math » [javadoc | source]
    1   /*
    2   Copyright 1999 CERN - European Organization for Nuclear Research.
    3   Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
    4   is hereby granted without fee, provided that the above copyright notice appear in all copies and 
    5   that both that copyright notice and this permission notice appear in supporting documentation. 
    6   CERN makes no representations about the suitability of this software for any purpose. 
    7   It is provided "as is" without expressed or implied warranty.
    8   */
    9   package org.apache.mahout.math;
   10   
   11   /**
   12    * Interface for an object that knows how to swap elements at two positions (a,b).
   13    */
   14   public interface Swapper {
   15   
   16     /** Swaps the generic data g[a] with g[b]. */
   17     void swap(int a, int b);
   18   }

Save This Page
Home » mahout-collections-1.0-src » org.apache.mahout.math » [javadoc | source]