Package org.apache.juneau.rest.util
Class DefaultClassList
java.lang.Object
org.apache.juneau.rest.util.DefaultClassList
A list of default implementation classes.
Notes:
- This class is not thread safe.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor.DefaultClassList(DefaultClassList value) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionPrepends the specified values to the beginning of this list.copy()Creates a copy of this list.static DefaultClassListcreate()Static creator.Returns the first class in this list which is a subclass of (or same as) the specified type.static DefaultClassListStatic creator.
-
Constructor Details
-
DefaultClassList
Copy constructor- Parameters:
value- The object to copy.
-
DefaultClassList
protected DefaultClassList()Constructor.
-
-
Method Details
-
create
Static creator.- Returns:
- A new object.
-
of
Static creator.- Parameters:
values- Initial entries in this list.- Returns:
- A new object initialized with the specified values.
-
add
Prepends the specified values to the beginning of this list.- Parameters:
values- The values to prepend to this list.- Returns:
- This object.
-
copy
Creates a copy of this list.- Returns:
- A copy of this list.
-
get
Returns the first class in this list which is a subclass of (or same as) the specified type.- Type Parameters:
T- The parent type.- Parameters:
type- The parent type to check for.- Returns:
- The first class in this list which is a subclass of the specified type.
-