Package com.cta4j.train.follow
Interface FollowApi
@NullMarked
public interface FollowApi
Provides access to follow-related endpoints of the CTA Train Tracker API.
This API allows retrieval of information about a specific train run.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a train by its run number.
-
Method Details
-
findByRun
Retrieves a train by its run number.- Parameters:
run- the run number of the train- Returns:
- an
Optionalcontaining theFollowTrainif found, or an emptyOptionalif no train exists with the given run number - Throws:
NullPointerException- ifrunisnull
-