mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-18 12:14:29 +00:00
Initial commit of guarded suspension design pattern
This commit is contained in:
1 parent
cca4760f69
commit
764ff4bf53
8 files changed
+219
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<class-diagram version="1.1.13" icons="true" automaticImage="JPEG" always-add-relationships="false"
|
||||
generalizations="true" realizations="true" associations="true" dependencies="false" nesting-relationships="true"
|
||||
router="FAN">
|
||||
<class id="1" language="java" name="com.iluwatar.guarded.suspension.GuardedQueue"
|
||||
project="java-design-patterns_guarded-suspension"
|
||||
file="/java-design-patterns_guarded-suspension/src/main/java/com/iluwatar/guarded/suspension/GuardedQueue.java"
|
||||
binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="277" width="326" x="301" y="172"/>
|
||||
<display autosize="false" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</classifier-display>
|
||||
<association-display labels="true" multiplicity="true"/>
|
||||
</class-diagram>
|
||||
@@ -0,0 +1,11 @@
|
||||
@startuml
|
||||
package com.iluwatar.guarded.suspension {
|
||||
class GuardedQueue {
|
||||
- LOGGER : Logger {static}
|
||||
- sourceList : Queue<Integer>
|
||||
+ GuardedQueue()
|
||||
+ get() : Integer
|
||||
+ put(e : Integer)
|
||||
}
|
||||
}
|
||||
@enduml
|
||||
Reference in new issue
Block a user