1 package org.robolectric.annotation; 2 3 import java.lang.annotation.Documented; 4 import java.lang.annotation.ElementType; 5 import java.lang.annotation.Retention; 6 import java.lang.annotation.RetentionPolicy; 7 import java.lang.annotation.Target; 8 9 /** 10 * Indicates that a method declaration is intended to shadow a method with the same signature 11 * on the associated Android class. 12 */ 13 @Documented 14 @Retention(RetentionPolicy.RUNTIME) 15 @Target({ElementType.METHOD}) 16 public @interface Implementation { 17 int DEFAULT_SDK = -1; 18 19 /** 20 * The annotated shadow method will be invoked only for the specified SDK or greater. 21 */ minSdk()22 int minSdk() default DEFAULT_SDK; 23 24 /** 25 * The annotated shadow method will be invoked only for the specified SDK or lesser. 26 */ maxSdk()27 int maxSdk() default DEFAULT_SDK; 28 } 29