mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-28 19:09:10 +00:00
Javadoc updates
Conflicts: jetty-util/src/main/java/org/eclipse/jetty/util/Loader.java jetty-util/src/main/java/org/eclipse/jetty/util/Promise.java
This commit is contained in:
parent
988e596c71
commit
4a07503a09
@ -19,6 +19,7 @@
|
|||||||
package org.eclipse.jetty.util;
|
package org.eclipse.jetty.util;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.function.Predicate;
|
import java.util.function.Predicate;
|
||||||
|
|
||||||
@ -64,9 +65,12 @@ public class IncludeExclude<ITEM>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct an IncludeExclude
|
* Construct an IncludeExclude.
|
||||||
|
* <p>
|
||||||
|
* If the {@link Set} class also implements {@link Predicate}, then that Predicate is
|
||||||
|
* used to match against the set, otherwise a simple {@link Set#contains(Object)} test is used.
|
||||||
* @param setClass The type of {@link Set} to using internally
|
* @param setClass The type of {@link Set} to using internally
|
||||||
* @param predicate A predicate function to test if a passed ITEM is matched by the passed SET}
|
* @param <SET> the {@link Set} type
|
||||||
*/
|
*/
|
||||||
public <SET extends Set<ITEM>> IncludeExclude(Class<SET> setClass)
|
public <SET extends Set<ITEM>> IncludeExclude(Class<SET> setClass)
|
||||||
{
|
{
|
||||||
@ -97,12 +101,18 @@ public class IncludeExclude<ITEM>
|
|||||||
* Construct an IncludeExclude
|
* Construct an IncludeExclude
|
||||||
*
|
*
|
||||||
* @param includeSet the Set of items that represent the included space
|
* @param includeSet the Set of items that represent the included space
|
||||||
* @param includePredicate the Predicate for included item testing (null for simple {@link Set#contains(Object)} test)
|
* @param includePredicate the Predicate for included item testing
|
||||||
* @param excludeSet the Set of items that represent the excluded space
|
* @param excludeSet the Set of items that represent the excluded space
|
||||||
* @param excludePredicate the Predicate for excluded item testing (null for simple {@link Set#contains(Object)} test)
|
* @param excludePredicate the Predicate for excluded item testing
|
||||||
|
* @param <SET> the {@link Set} type
|
||||||
*/
|
*/
|
||||||
public <SET extends Set<ITEM>> IncludeExclude(Set<ITEM> includeSet, Predicate<ITEM> includePredicate, Set<ITEM> excludeSet, Predicate<ITEM> excludePredicate)
|
public <SET extends Set<ITEM>> IncludeExclude(Set<ITEM> includeSet, Predicate<ITEM> includePredicate, Set<ITEM> excludeSet, Predicate<ITEM> excludePredicate)
|
||||||
{
|
{
|
||||||
|
Objects.requireNonNull(includeSet,"Include Set");
|
||||||
|
Objects.requireNonNull(includePredicate,"Include Predicate");
|
||||||
|
Objects.requireNonNull(excludeSet,"Exclude Set");
|
||||||
|
Objects.requireNonNull(excludePredicate,"Exclude Predicate");
|
||||||
|
|
||||||
_includes = includeSet;
|
_includes = includeSet;
|
||||||
_includePredicate = includePredicate;
|
_includePredicate = includePredicate;
|
||||||
_excludes = excludeSet;
|
_excludes = excludeSet;
|
||||||
|
@ -69,7 +69,7 @@ public class Loader
|
|||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
/** Load a class.
|
/** Load a class.
|
||||||
*
|
*
|
||||||
* @param loadClass the class to use for the ClassLoader that was used
|
* @param loaderClass a similar class, belong in the same classloader of the desired class to load
|
||||||
* @param name the name of the new class to load, using the same ClassLoader as the <code>loadClass</code>
|
* @param name the name of the new class to load, using the same ClassLoader as the <code>loadClass</code>
|
||||||
* @return Class
|
* @return Class
|
||||||
* @throws ClassNotFoundException if not able to find the class
|
* @throws ClassNotFoundException if not able to find the class
|
||||||
|
@ -47,6 +47,7 @@ public interface Promise<C>
|
|||||||
* <p>Empty implementation of {@link Promise}</p>
|
* <p>Empty implementation of {@link Promise}</p>
|
||||||
*
|
*
|
||||||
* @param <C> the type of the context object
|
* @param <C> the type of the context object
|
||||||
|
* @param <T> the type of the result
|
||||||
*/
|
*/
|
||||||
public static class Adapter<C> implements Promise<C>
|
public static class Adapter<C> implements Promise<C>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user