public class ExampleClass {
@Override
public String toString() {
return "This is an example class.";
}
@Deprecated
public void deprecatedMethod() {
// This method is deprecated, do not use it.
}
public void processData(@NotNull String data) {
// Process the data
}
@SuppressWarnings("unchecked")
public List getData() {
// Get data from source
return new ArrayList();
}
@FunctionalInterface
public interface ExampleFunctionalInterface {
void performAction();
}
}