ReMove Serializable from interface
Implementations already implemented it git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@777530 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2180b0b9fa
commit
982deb25d5
|
@ -30,7 +30,9 @@ import org.apache.commons.math.MathException;
|
||||||
* @version $Revision$ $Date$
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
public class DefaultTransformer implements NumberTransformer, Serializable {
|
public class DefaultTransformer implements NumberTransformer, Serializable {
|
||||||
|
// TODO: Add Serializable documentation
|
||||||
|
// TODO: Check Serializable implementation
|
||||||
|
|
||||||
/** Serializable version identifier */
|
/** Serializable version identifier */
|
||||||
private static final long serialVersionUID = 4019938025047800455L;
|
private static final long serialVersionUID = 4019938025047800455L;
|
||||||
|
|
||||||
|
|
|
@ -16,15 +16,16 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.util;
|
package org.apache.commons.math.util;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
import org.apache.commons.math.MathException;
|
import org.apache.commons.math.MathException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subclasses implementing this interface can transform Objects to doubles.
|
* Subclasses implementing this interface can transform Objects to doubles.
|
||||||
* @version $Revision$ $Date$
|
* @version $Revision$ $Date$
|
||||||
|
*
|
||||||
|
* No longer extends Serializable since 2.0
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public interface NumberTransformer extends Serializable {
|
public interface NumberTransformer {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementing this interface provides a facility to transform
|
* Implementing this interface provides a facility to transform
|
||||||
|
|
|
@ -32,6 +32,8 @@ import org.apache.commons.math.MathException;
|
||||||
* @version $Revision$ $Date$
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
public class TransformerMap implements NumberTransformer, Serializable {
|
public class TransformerMap implements NumberTransformer, Serializable {
|
||||||
|
// TODO: Add Serializable documentation
|
||||||
|
// TODO: Check Serializable implementation
|
||||||
|
|
||||||
/** Serializable version identifier */
|
/** Serializable version identifier */
|
||||||
private static final long serialVersionUID = 4605318041528645258L;
|
private static final long serialVersionUID = 4605318041528645258L;
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math.stat.descriptive;
|
package org.apache.commons.math.stat.descriptive;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -184,7 +185,7 @@ public final class MixedListUnivariateImplTest extends TestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class FooTransformer implements NumberTransformer {
|
public static final class FooTransformer implements NumberTransformer, Serializable {
|
||||||
private static final long serialVersionUID = -4252248129291326127L;
|
private static final long serialVersionUID = -4252248129291326127L;
|
||||||
public double transform(Object o) {
|
public double transform(Object o) {
|
||||||
return Double.parseDouble(((Foo) o).heresFoo());
|
return Double.parseDouble(((Foo) o).heresFoo());
|
||||||
|
@ -197,7 +198,7 @@ public final class MixedListUnivariateImplTest extends TestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class BarTransformer implements NumberTransformer {
|
public static final class BarTransformer implements NumberTransformer, Serializable {
|
||||||
private static final long serialVersionUID = -1768345377764262043L;
|
private static final long serialVersionUID = -1768345377764262043L;
|
||||||
public double transform(Object o) {
|
public double transform(Object o) {
|
||||||
return Double.parseDouble(((Bar) o).heresBar());
|
return Double.parseDouble(((Bar) o).heresBar());
|
||||||
|
|
Loading…
Reference in New Issue