Package org.awaitility.core
Class FieldSupplierBuilder.AnnotationFieldSupplier<T>
- java.lang.Object
-
- org.awaitility.core.FieldSupplierBuilder.AnnotationFieldSupplier<T>
-
- All Implemented Interfaces:
java.util.concurrent.Callable<T>
- Enclosing class:
- FieldSupplierBuilder
public class FieldSupplierBuilder.AnnotationFieldSupplier<T> extends java.lang.Object implements java.util.concurrent.Callable<T>
-
-
Constructor Summary
Constructors Constructor Description AnnotationFieldSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.Callable<T>andAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)Find a field based on a name, type and annotation.Tcall()
-
-
-
Method Detail
-
andAnnotatedWith
public java.util.concurrent.Callable<T> andAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Find a field based on a name, type and annotation. E.g.await().until(fieldIn(object).ofType(int.class).andWithName("fieldName").andAnnotatedWith(MyAnnotation.class), equalTo(2));- Parameters:
annotationType- The type of the annotation- Returns:
- The supplier
-
-