import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
@InterfaceAudience.Private
@InterfaceStability.Stable
public class ExampleClass {
@InterfaceAudience.Public
@InterfaceStability.Evolving
public void exampleMethod() {
}
@Deprecated
public void deprecatedMethod() {
}
@InterfaceAudience.Private
@InterfaceAudience.LimitedPrivate({"MapReduce"})
public void limitedMethod() {
}
}
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-annotations</artifactId>
<version>3.3.1</version>
</dependency>