I am following a tutorial that does not explain the syntax of this method declaration. Can someone explain what the first <T> right after the static keyword is for? When I hover over it in Android Studio is just says, "Class T extends Object".
public static <T> Resource<T> success(@NonNull T data) {
return new Resource<>(Status.SUCCESS, data, null);
}