Skip to content

Instantly share code, notes, and snippets.

@pokuwagata
Created December 30, 2017 15: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 pokuwagata/8ee77b4ee11919a7e9bf9dd2fa839f1a to your computer and use it in GitHub Desktop.
Save pokuwagata/8ee77b4ee11919a7e9bf9dd2fa839f1a to your computer and use it in GitHub Desktop.
@startuml
interface Aggregate {
iterator()
}
class ConcreteAggregate {
iterator()
}
interface Iterator {
hasNext()
next()
}
class ConcreteIterator {
aggregate
hasNext()
next()
}
Aggregate -r-> Iterator : Creates >
ConcreteAggregate .u.|> Aggregate
ConcreteIterator .u.|> Iterator
ConcreteIterator o.l.> ConcreteAggregate
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment