Skip to content

Instantly share code, notes, and snippets.

@Twisol
Created September 12, 2022 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Twisol/b22fb42f07c69007ccbace4cac05e9e8 to your computer and use it in GitHub Desktop.
Save Twisol/b22fb42f07c69007ccbace4cac05e9e8 to your computer and use it in GitHub Desktop.
public interface SchedulerModel {
Map<String, ActivityType> getActivityTypes();
interface ActivityType {
Optional<ControllableDuration> getControllableDuration();
}
interface ControllableDuration {
String getName();
SerializedValue fromDuration(Duration duration);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment