1 package org.junit.runners.model; 2 3 /** 4 * Represents a receiver for values of annotated fields/methods together with the declaring member. 5 * 6 * @see TestClass#collectAnnotatedFieldValues(Object, Class, Class, MemberValueConsumer) 7 * @see TestClass#collectAnnotatedMethodValues(Object, Class, Class, MemberValueConsumer) 8 * @since 4.13 9 */ 10 public interface MemberValueConsumer<T> { 11 /** 12 * Receives the next value and its declaring member. 13 * 14 * @param member declaring member ({@link FrameworkMethod} or {@link FrameworkField}) 15 * @param value the value of the next member 16 */ accept(FrameworkMember<?> member, T value)17 void accept(FrameworkMember<?> member, T value); 18 } 19