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