You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2013/10/31 20:53:10 UTC
svn commit: r1537602 -
/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/
Author: kinow
Date: Thu Oct 31 19:53:09 2013
New Revision: 1537602
URL: http://svn.apache.org/r1537602
Log:
FUNCTOR-29 removing serializable from the composite package
Modified:
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/AbstractLoopNullaryProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/And.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseBinaryPredicateList.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseNullaryPredicateList.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BasePredicateList.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryAnd.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryCompositeBinaryFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryNot.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryOr.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinarySequence.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryPredicate.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositePredicate.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryPredicate.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryPredicate.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalPredicate.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/DoWhileNullaryProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Not.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryAnd.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryNot.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryOr.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullarySequence.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Or.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Sequence.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedProcedure.java
commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/WhileDoNullaryProcedure.java
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/AbstractLoopNullaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/AbstractLoopNullaryProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/AbstractLoopNullaryProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/AbstractLoopNullaryProcedure.java Thu Oct 31 19:53:09 2013
@@ -20,19 +20,13 @@ import org.apache.commons.functor.Nullar
import org.apache.commons.functor.NullaryProcedure;
import org.apache.commons.lang3.Validate;
-import java.io.Serializable;
-
/**
* Abstract base class for {@link WhileDoNullaryProcedure} and {@link DoWhileNullaryProcedure}
* used to implement loop procedures.
* <p>
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public abstract class AbstractLoopNullaryProcedure implements NullaryProcedure, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -5903381842630236070L;
+public abstract class AbstractLoopNullaryProcedure implements NullaryProcedure {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/And.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/And.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/And.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/And.java Thu Oct 31 19:53:09 2013
@@ -23,24 +23,11 @@ import org.apache.commons.functor.Predic
* none of its children test <code>false</code>.
* Note that by this definition, the "and" of
* an empty collection of predicates tests <code>true</code>.
- * <p>
- * Note that although this class implements
- * {@link java.io.Serializable Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the predicate argument type.
* @version $Revision$ $Date$
*/
public final class And<A> extends BasePredicateList<A> {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 8324861737107307302L;
-
// constructor
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseBinaryPredicateList.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseBinaryPredicateList.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseBinaryPredicateList.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseBinaryPredicateList.java Thu Oct 31 19:53:09 2013
@@ -16,7 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@@ -25,25 +24,13 @@ import org.apache.commons.functor.Binary
/**
* Abstract base class for {@link BinaryPredicate BinaryPredicates}
* composed of a list of {@link BinaryPredicate BinaryPredicates}.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
-abstract class BaseBinaryPredicateList<L, R> implements BinaryPredicate<L, R>, Serializable {
+abstract class BaseBinaryPredicateList<L, R> implements BinaryPredicate<L, R> {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -8218822378485819939L;
- // attributes
+ // attributes
// ------------------------------------------------------------------------
/**
* A list to maintain all the adapted predicates.
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseNullaryPredicateList.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseNullaryPredicateList.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseNullaryPredicateList.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BaseNullaryPredicateList.java Thu Oct 31 19:53:09 2013
@@ -16,7 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@@ -25,21 +24,9 @@ import org.apache.commons.functor.Nullar
/**
* Abstract base class for {@link NullaryPredicate NullaryPredicates}
* composed of a list of {@link NullaryPredicate NullaryPredicates}.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-abstract class BaseNullaryPredicateList implements NullaryPredicate, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 7860902316994888181L;
+abstract class BaseNullaryPredicateList implements NullaryPredicate {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BasePredicateList.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BasePredicateList.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BasePredicateList.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BasePredicateList.java Thu Oct 31 19:53:09 2013
@@ -16,7 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@@ -25,23 +24,11 @@ import org.apache.commons.functor.Predic
/**
* Abstract base class for {@link Predicate Predicates}
* composed of a list of {@link Predicate Predicates}.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the predicate argument type.
* @version $Revision$ $Date$
*/
-abstract class BasePredicateList<A> implements Predicate<A>, Serializable {
+abstract class BasePredicateList<A> implements Predicate<A> {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 1467575113401282954L;
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryAnd.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryAnd.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryAnd.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryAnd.java Thu Oct 31 19:53:09 2013
@@ -23,25 +23,12 @@ import org.apache.commons.functor.Binary
* none of its children test <code>false</code>.
* Note that by this definition, the "and" of
* an empty collection of predicates tests <code>true</code>.
- * <p>
- * Note that although this class implements
- * {@link java.io.Serializable Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
public final class BinaryAnd<L, R> extends BaseBinaryPredicateList<L, R> {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -6741089498337923680L;
-
// constructor
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryCompositeBinaryFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryCompositeBinaryFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryCompositeBinaryFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryCompositeBinaryFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryFunction;
import org.apache.commons.lang3.Validate;
@@ -26,25 +24,12 @@ import org.apache.commons.lang3.Validate
* three binary functions, <i>f</i>, <i>g</i> and <i>h</i>,
* evaluating the ordered parameters <i>x</i>, <i>y</i>
* to <code><i>f</i>(<i>g</i>(<i>x</i>,<i>y</i>),<i>h</i>(<i>x</i>,<i>y</i>))</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the function left argument type.
* @param <R> the function right argument type.
* @param <T> the function returned value type.
* @version $Revision$ $Date$
*/
-public class BinaryCompositeBinaryFunction<L, R, T> implements BinaryFunction<L, R, T>, Serializable {
-
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 2570517284319064043L;
+public class BinaryCompositeBinaryFunction<L, R, T> implements BinaryFunction<L, R, T> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
@@ -55,11 +40,7 @@ public class BinaryCompositeBinaryFuncti
* @param <G> the function left argument type.
* @param <H> the function right argument type.
*/
- private static class Helper<G, H, L, R, T> implements BinaryFunction<L, R, T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 6013646799505641592L;
+ private static class Helper<G, H, L, R, T> implements BinaryFunction<L, R, T> {
/**
* Global evaluator.
*/
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryNot.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryNot.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryNot.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryNot.java Thu Oct 31 19:53:09 2013
@@ -16,31 +16,17 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryPredicate;
import org.apache.commons.lang3.Validate;
/**
* {@link #test Tests} to the logical inverse
* of some other predicate.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if the
- * underlying functor is. Attempts to serialize
- * an instance whose delegate is not
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
-public final class BinaryNot<L, R> implements BinaryPredicate<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -3488974286912054737L;
+public final class BinaryNot<L, R> implements BinaryPredicate<L, R> {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryOr.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryOr.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryOr.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinaryOr.java Thu Oct 31 19:53:09 2013
@@ -23,25 +23,12 @@ import org.apache.commons.functor.Binary
* at least one of its children test <code>true</code>.
* Note that by this definition, the "or" of
* an empty collection of predicates tests <code>false</code>.
- * <p>
- * Note that although this class implements
- * {@link java.io.Serializable Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
public final class BinaryOr<L, R> extends BaseBinaryPredicateList<L, R> {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -831325131082968810L;
-
// constructor
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinarySequence.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinarySequence.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinarySequence.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/BinarySequence.java Thu Oct 31 19:53:09 2013
@@ -16,7 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -29,24 +28,12 @@ import org.apache.commons.functor.Binary
* sequence of {@link BinaryProcedure BinaryProcedures}.
* When the sequence is empty, this procedure is does
* nothing.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
*
* @param <L> the procedure left argument type.
* @param <R> the procedure right argument type.
* @version $Revision$ $Date$
*/
-public class BinarySequence<L, R> implements BinaryProcedure<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 1371075584406178258L;
+public class BinarySequence<L, R> implements BinaryProcedure<L, R> {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryFunction;
import org.apache.commons.functor.Function;
import org.apache.commons.lang3.Validate;
@@ -28,25 +26,12 @@ import org.apache.commons.lang3.Validate
* functions, <i>g</i> and <i>h</i>,
* evaluating the ordered parameters <i>x</i>, <i>y</i>
* to <code><i>f</i>(<i>g</i>(<i>x</i>),<i>h</i>(<i>y</i>))</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @param <T> the returned value type.
* @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $
*/
-public class CompositeBinaryFunction<L, R, T> implements BinaryFunction<L, R, T>, Serializable {
-
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 264219357293822629L;
+public class CompositeBinaryFunction<L, R, T> implements BinaryFunction<L, R, T> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
@@ -60,11 +45,7 @@ public class CompositeBinaryFunction<L,
* @param <R> the right argument type.
* @param <T> the returned value type.
*/
- private static class Helper<G, H, L, R, T> implements BinaryFunction<L, R, T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 4513309646430305164L;
+ private static class Helper<G, H, L, R, T> implements BinaryFunction<L, R, T> {
/**
* The adapted function to receive <code>(output(g), output(h))</code>.
*/
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryPredicate.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryPredicate.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeBinaryPredicate.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryPredicate;
import org.apache.commons.functor.Function;
import org.apache.commons.lang3.Validate;
@@ -28,25 +26,13 @@ import org.apache.commons.lang3.Validate
* functions, <i>f</i> and <i>g</i>,
* evaluating the ordered parameters <i>x</i>, <i>y</i>
* to <code><i>p</i>(<i>f</i>(<i>x</i>),<i>g</i>(<i>y</i>))</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $
*/
-public class CompositeBinaryPredicate<L, R> implements BinaryPredicate<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 3841123079006929493L;
+public class CompositeBinaryPredicate<L, R> implements BinaryPredicate<L, R> {
- /** Base hash integer used to shift hash. */
+ /** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
/**
@@ -57,11 +43,7 @@ public class CompositeBinaryPredicate<L,
* @param <L> left function type.
* @param <R> left function type.
*/
- private static class Helper<G, H, L, R> implements BinaryPredicate<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -3463108273324567825L;
+ private static class Helper<G, H, L, R> implements BinaryPredicate<L, R> {
/**
* BinaryPredicate to test <i>output(</i><code>f</code><i>), output(</i><code>g</code><i>)</i>.
*/
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.Function;
import org.apache.commons.lang3.Validate;
@@ -37,24 +35,11 @@ import org.apache.commons.lang3.Validate
* When the collection is empty, this function is
* an identity function.
* </p>
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the argument type.
* @param <T> the returned value type.
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public class CompositeFunction<A, T> implements Function<A, T>, Serializable {
-
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 4945193629275757281L;
+public class CompositeFunction<A, T> implements Function<A, T> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
@@ -65,11 +50,7 @@ public class CompositeFunction<A, T> imp
* @param <X> intermediate type
* @param <T> return type
*/
- private static class Helper<X, A, T> implements Function<A, T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 8167255331321876718L;
+ private static class Helper<X, A, T> implements Function<A, T> {
/**
* The last evaluator function.
*/
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositePredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositePredicate.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositePredicate.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositePredicate.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.Function;
import org.apache.commons.functor.Predicate;
import org.apache.commons.functor.adapter.PredicateFunction;
@@ -35,22 +33,10 @@ import org.apache.commons.lang3.Validate
* <pre>new CompositePredicate(p).of(f).of(g)</pre>
* {@link #test tests} to
* <code>p.test(f.evaluate(g.evaluate(obj)))</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the predicate argument type.
* @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $
*/
-public final class CompositePredicate<A> implements Predicate<A>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 4880363949059265252L;
+public final class CompositePredicate<A> implements Predicate<A> {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/CompositeProcedure.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.Function;
import org.apache.commons.functor.Procedure;
import org.apache.commons.functor.adapter.ProcedureFunction;
@@ -35,22 +33,10 @@ import org.apache.commons.lang3.Validate
* <pre>new CompositeProcedure(p).of(f).of(g)</pre>
* {@link #run runs}
* <code>p.run(f.evaluate(g.evaluate(obj)))</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the procedure argument type.
* @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $
*/
-public final class CompositeProcedure<A> implements Procedure<A>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -7496282561355676509L;
+public final class CompositeProcedure<A> implements Procedure<A> {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryFunction;
import org.apache.commons.functor.BinaryPredicate;
import org.apache.commons.lang3.Validate;
@@ -31,24 +29,12 @@ import org.apache.commons.lang3.Validate
* <i>f</i> and <i>g</i>, {@link #evaluate evaluates}
* to
* <code>p.test(x,y) ? f.evaluate(x,y) : g.evaluate(x,y)</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @param <T> the output function returned value type.
* @version $Revision$ $Date$
*/
-public final class ConditionalBinaryFunction<L, R, T> implements BinaryFunction<L, R, T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -994698971284481482L;
+public final class ConditionalBinaryFunction<L, R, T> implements BinaryFunction<L, R, T> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryPredicate.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryPredicate.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryPredicate.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryPredicate;
import org.apache.commons.lang3.Validate;
@@ -30,23 +28,11 @@ import org.apache.commons.lang3.Validate
* {@link #test tests}
* to
* <code>p.test(x,y) ? q.test(x,y) : r.test(x,y)</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
-public final class ConditionalBinaryPredicate<L, R> implements BinaryPredicate<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -4511946801764080748L;
+public final class ConditionalBinaryPredicate<L, R> implements BinaryPredicate<L, R> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryProcedure.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryPredicate;
import org.apache.commons.functor.BinaryProcedure;
import org.apache.commons.functor.core.NoOp;
@@ -31,24 +29,11 @@ import org.apache.commons.lang3.Validate
* <i>p</i> and {@link BinaryProcedure procedures}
* <i>q</i> and <i>r</i>, {@link #run runs}
* <code>if (p.test(x,y)) { q.run(x,y); } else { r.run(x,y); }</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
-public final class ConditionalBinaryProcedure<L, R> implements BinaryProcedure<L, R>, Serializable {
-
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -3521992036791188475L;
+public final class ConditionalBinaryProcedure<L, R> implements BinaryProcedure<L, R> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.Function;
import org.apache.commons.functor.Predicate;
import org.apache.commons.lang3.Validate;
@@ -31,23 +29,11 @@ import org.apache.commons.lang3.Validate
* <i>f</i> and <i>g</i>, {@link #evaluate evalautes}
* to
* <code>p.test(x) ? f.evaluate(x) : g.evaluate(x)</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the argument type.
* @param <T> the returned value type.
* @version $Revision$ $Date$
*/
-public final class ConditionalFunction<A, T> implements Function<A, T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -8152490481969255068L;
+public final class ConditionalFunction<A, T> implements Function<A, T> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.NullaryFunction;
import org.apache.commons.functor.NullaryPredicate;
import org.apache.commons.lang3.Validate;
@@ -31,22 +29,10 @@ import org.apache.commons.lang3.Validate
* <i>f</i> and <i>g</i>, {@link #evaluate evaluates}
* to
* <code>p.test() ? f.evaluate() : g.evaluate()</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <T> the returned value type.
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public final class ConditionalNullaryFunction<T> implements NullaryFunction<T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 4214871352184887792L;
+public final class ConditionalNullaryFunction<T> implements NullaryFunction<T> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryPredicate.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryPredicate.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryPredicate.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.NullaryPredicate;
import org.apache.commons.lang3.Validate;
@@ -30,21 +28,9 @@ import org.apache.commons.lang3.Validate
* {@link #test tests}
* to
* <code>p.test() ? q.test() : r.test()</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public final class ConditionalNullaryPredicate implements NullaryPredicate, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 7333505000745854098L;
+public final class ConditionalNullaryPredicate implements NullaryPredicate {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalNullaryProcedure.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.NullaryPredicate;
import org.apache.commons.functor.NullaryProcedure;
import org.apache.commons.functor.core.NoOp;
@@ -31,22 +29,9 @@ import org.apache.commons.lang3.Validate
* <i>p</i> and {@link NullaryProcedure procedures}
* <i>q</i> and <i>r</i>, {@link #run runs}
* <code>if (p.test()) { q.run(); } else { r.run(); }</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public final class ConditionalNullaryProcedure implements NullaryProcedure, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -4228632798836328605L;
-
+public final class ConditionalNullaryProcedure implements NullaryProcedure {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalPredicate.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalPredicate.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalPredicate.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.Predicate;
import org.apache.commons.lang3.Validate;
@@ -30,22 +28,10 @@ import org.apache.commons.lang3.Validate
* {@link #test tests}
* to
* <code>p.test(x) ? q.test(x) : r.test(x)</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the predicate argument type.
* @version $Revision$ $Date$
*/
-public final class ConditionalPredicate<A> implements Predicate<A>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 1214714029872180155L;
+public final class ConditionalPredicate<A> implements Predicate<A> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.Predicate;
import org.apache.commons.functor.Procedure;
import org.apache.commons.functor.core.NoOp;
@@ -31,23 +29,10 @@ import org.apache.commons.lang3.Validate
* <i>p</i> and {@link Procedure procedures}
* <i>q</i> and <i>r</i>, {@link #run runs}
* <code>if (p.test(x)) { q.run(x); } else { r.run(x); }</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the argument type.
* @version $Revision$ $Date$
*/
-public final class ConditionalProcedure<A> implements Procedure<A>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -895833369740247391L;
-
+public final class ConditionalProcedure<A> implements Procedure<A> {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 4;
// attributes
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/DoWhileNullaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/DoWhileNullaryProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/DoWhileNullaryProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/DoWhileNullaryProcedure.java Thu Oct 31 19:53:09 2013
@@ -24,21 +24,9 @@ import org.apache.commons.functor.Nullar
* A {@link NullaryProcedure} implementation of a while loop. Given a {@link NullaryPredicate}
* <i>c</i> and an {@link NullaryProcedure} <i>p</i>, {@link #run runs}
* <code>do { p.run(); } while(c.test())</code>.
- * <p>
- * Note that although this class implements
- * {@link java.io.Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $
*/
public class DoWhileNullaryProcedure extends AbstractLoopNullaryProcedure {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -6064417600588553892L;
/**
* Create a new DoWhileNullaryProcedure.
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Not.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Not.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Not.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Not.java Thu Oct 31 19:53:09 2013
@@ -16,30 +16,16 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.Predicate;
import org.apache.commons.lang3.Validate;
/**
* {@link #test Tests} to the logical inverse
* of some other predicate.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if the
- * underlying functor is. Attempts to serialize
- * an instance whose delegate is not
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the argument type.
* @version $Revision$ $Date$
*/
-public final class Not<A> implements Predicate<A>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -97785102566566058L;
+public final class Not<A> implements Predicate<A> {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryAnd.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryAnd.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryAnd.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryAnd.java Thu Oct 31 19:53:09 2013
@@ -23,14 +23,6 @@ import org.apache.commons.functor.Nullar
* none of its children test <code>false</code>.
* Note that by this definition, the "and" of
* an empty collection of predicates tests <code>true</code>.
- * <p>
- * Note that although this class implements
- * {@link java.io.Serializable Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $
*/
public final class NullaryAnd extends BaseNullaryPredicateList {
@@ -39,11 +31,6 @@ public final class NullaryAnd extends Ba
// ------------------------------------------------------------------------
/**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -6053343095016685571L;
-
- /**
* Create a new NullaryAnd.
*/
public NullaryAnd() {
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryNot.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryNot.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryNot.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryNot.java Thu Oct 31 19:53:09 2013
@@ -16,31 +16,17 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.NullaryPredicate;
import org.apache.commons.lang3.Validate;
/**
* {@link #test Tests} to the logical inverse
* of some other predicate.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if the
- * underlying functor is. Attempts to serialize
- * an instance whose delegate is not
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public final class NullaryNot implements NullaryPredicate, Serializable {
+public final class NullaryNot implements NullaryPredicate {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 8268713706856765874L;
- // attributes
+ // attributes
// ------------------------------------------------------------------------
/**
* The adapted predicate has to be negated.
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryOr.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryOr.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryOr.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullaryOr.java Thu Oct 31 19:53:09 2013
@@ -23,23 +23,10 @@ import org.apache.commons.functor.Nullar
* at least one of its children test <code>true</code>.
* Note that by this definition, the "or" of
* an empty collection of predicates tests <code>false</code>.
- * <p>
- * Note that although this class implements
- * {@link java.io.Serializable Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $
*/
public final class NullaryOr extends BaseNullaryPredicateList {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -1636233158061690073L;
-
// constructor
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullarySequence.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullarySequence.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullarySequence.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/NullarySequence.java Thu Oct 31 19:53:09 2013
@@ -16,7 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -29,22 +28,10 @@ import org.apache.commons.functor.Nullar
* sequence of {@link NullaryProcedure NullaryProcedures}.
* When the sequence is empty, this procedure is does
* nothing.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public class NullarySequence implements NullaryProcedure, Serializable {
+public class NullarySequence implements NullaryProcedure {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 8041703589149547883L;
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Or.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Or.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Or.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Or.java Thu Oct 31 19:53:09 2013
@@ -23,24 +23,11 @@ import org.apache.commons.functor.Predic
* at least one of its children test <code>true</code>.
* Note that by this definition, the "or" of
* an empty collection of predicates tests <code>false</code>.
- * <p>
- * Note that although this class implements
- * {@link java.io.Serializable Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the predicate argument type.
* @version $Revision$ $Date$
*/
public final class Or<A> extends BasePredicateList<A> {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -4072936447932983645L;
-
// constructor
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Sequence.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Sequence.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Sequence.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/Sequence.java Thu Oct 31 19:53:09 2013
@@ -16,7 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -29,23 +28,11 @@ import org.apache.commons.functor.Proced
* sequence of {@link Procedure Procedures}.
* When the sequence is empty, this procedure is does
* nothing.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <A> the argument type.
* @version $Revision$ $Date$
*/
-public class Sequence<A> implements Procedure<A>, Serializable {
+public class Sequence<A> implements Procedure<A> {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 9194268249717820246L;
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryFunction;
import org.apache.commons.functor.Function;
import org.apache.commons.lang3.Validate;
@@ -30,22 +28,13 @@ import org.apache.commons.lang3.Validate
* @param <T> the returned value type.
* @version $Revision$ $Date$
*/
-public class TransformedBinaryFunction<L, R, T> implements BinaryFunction<L, R, T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 3312781645741807814L;
-
+public class TransformedBinaryFunction<L, R, T> implements BinaryFunction<L, R, T> {
/**
* Type-remembering helper.
*
* @param <X> the following function left argument.
*/
- private static final class Helper<X, L, R, T> implements BinaryFunction<L, R, T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 8141488776884860650L;
+ private static final class Helper<X, L, R, T> implements BinaryFunction<L, R, T> {
/**
* The preceding function.
*/
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedBinaryProcedure.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryFunction;
import org.apache.commons.functor.BinaryProcedure;
import org.apache.commons.functor.Procedure;
@@ -30,22 +28,13 @@ import org.apache.commons.lang3.Validate
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
-public class TransformedBinaryProcedure<L, R> implements BinaryProcedure<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -7559182250073101798L;
-
+public class TransformedBinaryProcedure<L, R> implements BinaryProcedure<L, R> {
/**
* Type-remembering helper.
*
* @param <X> the wrapped procedure argument.
*/
- private static final class Helper<X, L, R> implements BinaryProcedure<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -4229496007094829301L;
+ private static final class Helper<X, L, R> implements BinaryProcedure<L, R> {
/**
* The wrapped function.
*/
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.NullaryFunction;
import org.apache.commons.functor.Function;
import org.apache.commons.lang3.Validate;
@@ -28,22 +26,14 @@ import org.apache.commons.lang3.Validate
* @param <T> the returned value type.
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public class TransformedNullaryFunction<T> implements NullaryFunction<T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 1201423110871342081L;
+public class TransformedNullaryFunction<T> implements NullaryFunction<T> {
/**
* Type-remembering helper.
*
* @param <X> the adapted function argument type
*/
- private static final class Helper<X, T> implements NullaryFunction<T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -7177784125292465809L;
+ private static final class Helper<X, T> implements NullaryFunction<T> {
/**
* The preceding function.
*/
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransformedNullaryProcedure.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.NullaryFunction;
import org.apache.commons.functor.NullaryProcedure;
import org.apache.commons.functor.Procedure;
@@ -27,11 +25,7 @@ import org.apache.commons.lang3.Validate
* A NullaryProcedure composed of a NullaryFunction whose result is then run through a Procedure.
* @version $Revision: 1365329 $ $Date: 2012-07-24 19:34:23 -0300 (Tue, 24 Jul 2012) $
*/
-public class TransformedNullaryProcedure implements NullaryProcedure, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -4111958123789033410L;
+public class TransformedNullaryProcedure implements NullaryProcedure {
/** Base hash integer used to shift hash. */
private static final int HASH_SHIFT = 2;
@@ -40,11 +34,7 @@ public class TransformedNullaryProcedure
* Type-remembering helper.
* @param <X> the adapted function argument type.
*/
- private static final class Helper<X> implements NullaryProcedure, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -4093503167446891318L;
+ private static final class Helper<X> implements NullaryProcedure {
/**
* The adapted function.
*/
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedFunction.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryFunction;
import org.apache.commons.lang3.Validate;
@@ -29,25 +27,13 @@ import org.apache.commons.lang3.Validate
* <i>b</i>.
* {@link #evaluate evaluates} to
* <code>f.evaluate(b,a)</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if the
- * underlying functor is. Attempts to serialize
- * an instance whose delegate is not
- * <code>Serializable</code> will result in an exception.
- * </p>
*
* @param <L> the left argument type.
* @param <R> the right argument type.
* @param <T> the returned value type.
* @version $Revision$ $Date$
*/
-public class TransposedFunction<L, R, T> implements BinaryFunction<L, R, T>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = -5824252875453493940L;
+public class TransposedFunction<L, R, T> implements BinaryFunction<L, R, T> {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedPredicate.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryPredicate;
import org.apache.commons.lang3.Validate;
@@ -29,23 +27,11 @@ import org.apache.commons.lang3.Validate
* <i>b</i>.
* {@link #test tests}
* <code>p.test(b,a)</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if the
- * underlying functor is. Attempts to serialize
- * an instance whose delegate is not
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
-public class TransposedPredicate<L, R> implements BinaryPredicate<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 3441209087576289240L;
+public class TransposedPredicate<L, R> implements BinaryPredicate<L, R> {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/TransposedProcedure.java Thu Oct 31 19:53:09 2013
@@ -16,8 +16,6 @@
*/
package org.apache.commons.functor.core.composite;
-import java.io.Serializable;
-
import org.apache.commons.functor.BinaryProcedure;
import org.apache.commons.lang3.Validate;
@@ -29,23 +27,11 @@ import org.apache.commons.lang3.Validate
* <i>b</i>.
* {@link #run runs}
* <code>p.run(b,a)</code>.
- * <p>
- * Note that although this class implements
- * {@link Serializable}, a given instance will
- * only be truly <code>Serializable</code> if the
- * underlying functor is. Attempts to serialize
- * an instance whose delegate is not
- * <code>Serializable</code> will result in an exception.
- * </p>
* @param <L> the left argument type.
* @param <R> the right argument type.
* @version $Revision$ $Date$
*/
-public class TransposedProcedure<L, R> implements BinaryProcedure<L, R>, Serializable {
- /**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 4472683678460290015L;
+public class TransposedProcedure<L, R> implements BinaryProcedure<L, R> {
// attributes
// ------------------------------------------------------------------------
/**
Modified: commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/WhileDoNullaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/WhileDoNullaryProcedure.java?rev=1537602&r1=1537601&r2=1537602&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/WhileDoNullaryProcedure.java (original)
+++ commons/proper/functor/trunk/core/src/main/java/org/apache/commons/functor/core/composite/WhileDoNullaryProcedure.java Thu Oct 31 19:53:09 2013
@@ -24,23 +24,10 @@ import org.apache.commons.functor.Nullar
* A {@link NullaryProcedure} implementation of a while loop. Given a {@link NullaryPredicate}
* <i>c</i> and an {@link NullaryProcedure} <i>p</i>, {@link #run runs}
* <code>while(c.test()) { p.run(); }</code>.
- * <p>
- * Note that although this class implements
- * {@link java.io.Serializable}, a given instance will
- * only be truly <code>Serializable</code> if all the
- * underlying functors are. Attempts to serialize
- * an instance whose delegates are not all
- * <code>Serializable</code> will result in an exception.
- * </p>
* @version $Revision: 1345136 $ $Date: 2012-06-01 09:47:06 -0300 (Fri, 01 Jun 2012) $
*/
public class WhileDoNullaryProcedure extends AbstractLoopNullaryProcedure {
/**
- * serialVersionUID declaration.
- */
- private static final long serialVersionUID = 8157389586531784657L;
-
- /**
* Create a new WhileDoNullaryProcedure.
* @param condition while
* @param action to do