java-design-patterns/object-pool/etc/object-pool.urm.puml

30 lines
610 B
Plaintext
Raw Permalink Normal View History

@startuml
package com.iluwatar.object.pool {
class App {
- LOGGER : Logger {static}
+ App()
+ main(args : String[]) {static}
}
abstract class ObjectPool<T> {
- available : HashSet<T>
- inUse : HashSet<T>
+ ObjectPool<T>()
+ checkIn(instance : T)
+ checkOut() : T
# create() : T {abstract}
+ toString() : String
}
class Oliphaunt {
- counter : int {static}
- id : int
+ Oliphaunt()
+ getId() : int
+ toString() : String
}
class OliphauntPool {
+ OliphauntPool()
# create() : Oliphaunt
}
}
OliphauntPool --|> ObjectPool
@enduml