Class BasicReflectionMatchers
java.lang.Object
org.tudalgo.algoutils.tutor.general.match.BasicReflectionMatchers
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends WithModifiers>
Matcher<T>hasModifiers(Modifier... modifiers) A matcher matching an object if the object has at least the given modifiers.static <T extends WithTypeList>
Matcher<T>A matcher matching an object if the object has the same types as given.
-
Method Details
-
sameType
-
sameTypes
A matcher matching an object if the object has the same types as given.
- Parameters:
types- the types- Returns:
- the matcher
-
hasModifiers
A matcher matching an object if the object has at least the given modifiers.
- Type Parameters:
T- the type of object to match- Parameters:
modifiers- the modifiers- Returns:
- the matcher
-