Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 11, 2024
1 parent d97bab8 commit 9c5bf7a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/apache/commons/collections4/Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
* a copy of a prototype or a new instance.
* </p>
*
* @param <T> the type that the factory creates
*
* @param <T> the type of results supplied by this supplier.
* @since 2.1
* @deprecated Use {@link Supplier}.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* use the prototype factory.
* </p>
*
* @param <T> the type of results supplied by this supplier.
* @since 3.0
*/
public class ConstantFactory<T> implements Factory<T>, Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
/**
* Factory implementation that always throws an exception.
*
* @param <T> the type of results supplied by this supplier.
* @since 3.0
*/
public final class ExceptionFactory<T> implements Factory<T>, Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* for more details.
* </p>
*
* @param <T> the type of results supplied by this supplier.
* @since 3.0
*/
public class InstantiateFactory<T> implements Factory<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
*/
public class PrototypeFactory {

// PrototypeCloneFactory
/**
* 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> {

Expand Down Expand Up @@ -95,9 +96,10 @@ private void findCloneMethod() {
}
}

// PrototypeSerializationFactory
/**
* 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> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public class MultiValueMap<K, V> extends AbstractMapDecorator<K, Object> impleme

/**
* 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 {

Expand Down

0 comments on commit 9c5bf7a

Please sign in to comment.