-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingleton.drawio
32 lines (32 loc) · 3.28 KB
/
Singleton.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<mxfile host="app.diagrams.net" modified="2023-07-10T02:10:52.459Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" etag="DGsprPRb2a2PPVyYZcaI" version="21.5.2" type="github">
<diagram name="Page-1" id="nUyvdHh5cfKOgp0yRK-c">
<mxGraphModel dx="824" dy="551" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="P1zfHWuYSgUX7Jc0V1zc-1" value="<p style="margin:0px;margin-top:4px;text-align:center;"><b>Singleton</b></p><hr size="1"><p style="margin:0px;margin-left:4px;">- instance: Singleton?</p><hr size="1"><p style="margin:0px;margin-left:4px;">+ getIntance(): Singleton</p><p style="margin:0px;margin-left:4px;"><br></p><p style="margin:0px;margin-left:4px;">- Singleton()</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="460" y="380" width="160" height="110" as="geometry" />
</mxCell>
<mxCell id="P1zfHWuYSgUX7Jc0V1zc-7" value="1" style="endArrow=open;html=1;endSize=12;startArrow=diamondThin;startSize=14;startFill=0;edgeStyle=orthogonalEdgeStyle;align=left;verticalAlign=bottom;rounded=0;entryX=1;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" target="P1zfHWuYSgUX7Jc0V1zc-1">
<mxGeometry x="-1" y="3" relative="1" as="geometry">
<mxPoint x="620" y="460" as="sourcePoint" />
<mxPoint x="720" y="390" as="targetPoint" />
<Array as="points">
<mxPoint x="700" y="460" />
<mxPoint x="700" y="408" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="P1zfHWuYSgUX7Jc0V1zc-8" value="<div><font face="Lucida Console">if instance==null {</font></div><div><font face="Lucida Console">&nbsp; &nbsp; instance = new Singleton();</font></div><div><font face="Lucida Console">}</font></div><div><font face="Lucida Console"><br></font></div><div><font face="Lucida Console">return instance;</font></div>" style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;darkOpacity=0.05;align=left;" vertex="1" parent="1">
<mxGeometry x="150" y="410" width="250" height="110" as="geometry" />
</mxCell>
<mxCell id="P1zfHWuYSgUX7Jc0V1zc-10" value="" style="endArrow=none;html=1;rounded=0;exitX=0.998;exitY=0.414;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.016;entryY=0.577;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="P1zfHWuYSgUX7Jc0V1zc-8" target="P1zfHWuYSgUX7Jc0V1zc-1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="410" y="490" as="sourcePoint" />
<mxPoint x="460" y="440" as="targetPoint" />
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>