I know what interfaces are, but I don’t know enough about java to know how to search for my answer. So what does this mean and do:
public @interface ThreadSafe { }
// different file
@ThreadSafe
public class Model {
What does this line mean/do “@interface”? What does it mean/do when it’s applied above “@ThreadSafe”
This is called an annotation. You may want to look at the Java tutorial. It has a pretty good explanation of what they are and how they are used.
https://docs.oracle.com/javase/tutorial/java/annotations/index.html