Skip to content

Instantly share code, notes, and snippets.

@DominikMostek
Created July 18, 2022 15:50
Show Gist options
  • Save DominikMostek/5414df5cac6fb9e6812447a2eef66b29 to your computer and use it in GitHub Desktop.
Save DominikMostek/5414df5cac6fb9e6812447a2eef66b29 to your computer and use it in GitHub Desktop.
interface Entity {
Collection data();
}
interface TraversableEntity {
Entity asEntity(); // this
TraversableEntity traverseTo(Property prop);
}
interface SingleRecord {
TraversableEntity asTraversable(); // this
Identifier id();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment