This commit is contained in:
Gary Gregory 2024-07-11 18:21:21 -04:00
parent d97bab862a
commit 9c5bf7a5be
6 changed files with 10 additions and 4 deletions

View File

@ -30,8 +30,7 @@ import java.util.function.Supplier;
* a copy of a prototype or a new instance. * a copy of a prototype or a new instance.
* </p> * </p>
* *
* @param <T> the type that the factory creates * @param <T> the type of results supplied by this supplier.
*
* @since 2.1 * @since 2.1
* @deprecated Use {@link Supplier}. * @deprecated Use {@link Supplier}.
*/ */

View File

@ -28,6 +28,7 @@ import org.apache.commons.collections4.Factory;
* use the prototype factory. * use the prototype factory.
* </p> * </p>
* *
* @param <T> the type of results supplied by this supplier.
* @since 3.0 * @since 3.0
*/ */
public class ConstantFactory<T> implements Factory<T>, Serializable { public class ConstantFactory<T> implements Factory<T>, Serializable {

View File

@ -24,6 +24,7 @@ import org.apache.commons.collections4.FunctorException;
/** /**
* Factory implementation that always throws an exception. * Factory implementation that always throws an exception.
* *
* @param <T> the type of results supplied by this supplier.
* @since 3.0 * @since 3.0
*/ */
public final class ExceptionFactory<T> implements Factory<T>, Serializable { public final class ExceptionFactory<T> implements Factory<T>, Serializable {

View File

@ -32,6 +32,7 @@ import org.apache.commons.collections4.FunctorException;
* for more details. * for more details.
* </p> * </p>
* *
* @param <T> the type of results supplied by this supplier.
* @since 3.0 * @since 3.0
*/ */
public class InstantiateFactory<T> implements Factory<T> { public class InstantiateFactory<T> implements Factory<T> {

View File

@ -42,9 +42,10 @@ import org.apache.commons.collections4.FunctorException;
*/ */
public class PrototypeFactory { public class PrototypeFactory {
// PrototypeCloneFactory
/** /**
* PrototypeCloneFactory creates objects by copying a prototype using the clone method. * PrototypeCloneFactory creates objects by copying a prototype using the clone method.
*
* @param <T> the type of results supplied by this supplier.
*/ */
static class PrototypeCloneFactory<T> implements Factory<T> { static class PrototypeCloneFactory<T> implements Factory<T> {
@ -95,9 +96,10 @@ public class PrototypeFactory {
} }
} }
// PrototypeSerializationFactory
/** /**
* PrototypeSerializationFactory creates objects by cloning a prototype using serialization. * PrototypeSerializationFactory creates objects by cloning a prototype using serialization.
*
* @param <T> the type of results supplied by this supplier.
*/ */
static class PrototypeSerializationFactory<T extends Serializable> implements Factory<T> { static class PrototypeSerializationFactory<T extends Serializable> implements Factory<T> {

View File

@ -73,6 +73,8 @@ public class MultiValueMap<K, V> extends AbstractMapDecorator<K, Object> impleme
/** /**
* Inner class that provides a simple reflection factory. * Inner class that provides a simple reflection factory.
*
* @param <T> the type of results supplied by this supplier.
*/ */
private static final class ReflectionFactory<T extends Collection<?>> implements Factory<T>, Serializable { private static final class ReflectionFactory<T extends Collection<?>> implements Factory<T>, Serializable {