Class 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>
    • 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.
      T call()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationFieldSupplier

        public AnnotationFieldSupplier()
    • 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
      • call

        public T call()
        Specified by:
        call in interface java.util.concurrent.Callable<T>