Package org.apache.juneau.cp
Class DefaultClassList
java.lang.Object
org.apache.juneau.cp.DefaultClassList
A list of default implementation classes.
Notes:
- This class is not thread safe.
See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor.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 DefaultClassList
create()
Static creator.Returns the first class in this list which is a subclass of (or same as) the specified type.static DefaultClassList
Static creator.
-
Constructor Details
-
DefaultClassList
protected DefaultClassList()Constructor. -
DefaultClassList
Copy constructor- Parameters:
value
- The object to copy.
-
-
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.
-
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.
-
copy
Creates a copy of this list.- Returns:
- A copy of this list.
-