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