Class ClassFiles
java.lang.Object
org.springframework.core.test.tools.ClassFiles
An immutable collection of
ClassFile instances.- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionReturn a newClassFilesinstance that merges classes from another iterable ofClassFilesinstances.Return a newClassFilesinstance that merges classes from another array ofClassFileinstances.booleanGet theClassFilewith the given class name.inthashCode()booleanisEmpty()Returnstrueif this collection is empty.iterator()static ClassFilesnone()Return aClassFilesinstance with no items.static ClassFilesFactory method that can be used to create aClassFilesinstance containing the specified classes.stream()Stream theClassFileinstances contained in this collection.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
none
Return aClassFilesinstance with no items.- Returns:
- the empty instance
-
of
Factory method that can be used to create aClassFilesinstance containing the specified classes.- Parameters:
ClassFiles- the classes to include- Returns:
- a
ClassFilesinstance
-
and
Return a newClassFilesinstance that merges classes from another array ofClassFileinstances.- Parameters:
classFiles- the instances to merge- Returns:
- a new
ClassFilesinstance containing merged content
-
and
Return a newClassFilesinstance that merges classes from another iterable ofClassFilesinstances.- Parameters:
classFiles- the instances to merge- Returns:
- a new
ClassFilesinstance containing merged content
-
iterator
-
stream
Stream theClassFileinstances contained in this collection.- Returns:
- a stream of classes
-
isEmpty
public boolean isEmpty()Returnstrueif this collection is empty.- Returns:
- if this collection is empty
-
get
Get theClassFilewith the given class name.- Parameters:
name- the fully qualified name to find- Returns:
- a
ClassFileinstance ornull
-
equals
-
hashCode
public int hashCode() -
toString
-