|
| 1 | +<mxfile host="Electron" modified="2024-01-15T05:11:03.358Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.18 Chrome/120.0.6099.199 Electron/28.1.2 Safari/537.36" etag="eLXUrrP0K33-YHkS5GDz" version="22.1.18" type="device"> |
| 2 | + <diagram name="Page-1" id="Caa9E9GEJXXpX6c3hobu"> |
| 3 | + <mxGraphModel dx="558" dy="383" 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"> |
| 4 | + <root> |
| 5 | + <mxCell id="0" /> |
| 6 | + <mxCell id="1" parent="0" /> |
| 7 | + <mxCell id="Jd0V6s8Q-409282UJGnS-2" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;fillColor=#f5f5f5;gradientColor=#b3b3b3;strokeColor=#666666;" edge="1" parent="1"> |
| 8 | + <mxGeometry width="50" height="50" relative="1" as="geometry"> |
| 9 | + <mxPoint x="320" y="40" as="sourcePoint" /> |
| 10 | + <mxPoint x="320" y="270" as="targetPoint" /> |
| 11 | + </mxGeometry> |
| 12 | + </mxCell> |
| 13 | + <mxCell id="Jd0V6s8Q-409282UJGnS-7" value="<font style="font-size: 10px;">生<br>存<br>期</font>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];labelBackgroundColor=none;" vertex="1" connectable="0" parent="Jd0V6s8Q-409282UJGnS-2"> |
| 14 | + <mxGeometry x="-0.1516" y="-2" relative="1" as="geometry"> |
| 15 | + <mxPoint x="2" y="2" as="offset" /> |
| 16 | + </mxGeometry> |
| 17 | + </mxCell> |
| 18 | + <mxCell id="Jd0V6s8Q-409282UJGnS-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Jd0V6s8Q-409282UJGnS-3" target="Jd0V6s8Q-409282UJGnS-8"> |
| 19 | + <mxGeometry relative="1" as="geometry" /> |
| 20 | + </mxCell> |
| 21 | + <mxCell id="Jd0V6s8Q-409282UJGnS-3" value="构造" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fad7ac;strokeColor=#b46504;fontFamily=consolas;" vertex="1" parent="1"> |
| 22 | + <mxGeometry x="200" y="40" width="100" height="30" as="geometry" /> |
| 23 | + </mxCell> |
| 24 | + <mxCell id="Jd0V6s8Q-409282UJGnS-4" value="对象a" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> |
| 25 | + <mxGeometry x="220" y="10" width="60" height="30" as="geometry" /> |
| 26 | + </mxCell> |
| 27 | + <mxCell id="Jd0V6s8Q-409282UJGnS-8" value="析构" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fad7ac;strokeColor=#b46504;fontFamily=consolas;" vertex="1" parent="1"> |
| 28 | + <mxGeometry x="200" y="240" width="100" height="30" as="geometry" /> |
| 29 | + </mxCell> |
| 30 | + <mxCell id="Jd0V6s8Q-409282UJGnS-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Jd0V6s8Q-409282UJGnS-11" target="Jd0V6s8Q-409282UJGnS-15"> |
| 31 | + <mxGeometry relative="1" as="geometry" /> |
| 32 | + </mxCell> |
| 33 | + <mxCell id="Jd0V6s8Q-409282UJGnS-11" value="构造" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" vertex="1" parent="1"> |
| 34 | + <mxGeometry x="340" y="40" width="100" height="30" as="geometry" /> |
| 35 | + </mxCell> |
| 36 | + <mxCell id="Jd0V6s8Q-409282UJGnS-12" value="对象b" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> |
| 37 | + <mxGeometry x="360" y="10" width="60" height="30" as="geometry" /> |
| 38 | + </mxCell> |
| 39 | + <mxCell id="Jd0V6s8Q-409282UJGnS-13" value="析构" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;fontFamily=consolas;" vertex="1" parent="1"> |
| 40 | + <mxGeometry x="340" y="240" width="100" height="30" as="geometry" /> |
| 41 | + </mxCell> |
| 42 | + <mxCell id="Jd0V6s8Q-409282UJGnS-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Jd0V6s8Q-409282UJGnS-15" target="Jd0V6s8Q-409282UJGnS-17"> |
| 43 | + <mxGeometry relative="1" as="geometry" /> |
| 44 | + </mxCell> |
| 45 | + <mxCell id="Jd0V6s8Q-409282UJGnS-15" value="<font face="consolas">调用b.length()</font>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;" vertex="1" parent="1"> |
| 46 | + <mxGeometry x="340" y="90" width="100" height="30" as="geometry" /> |
| 47 | + </mxCell> |
| 48 | + <mxCell id="Jd0V6s8Q-409282UJGnS-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Jd0V6s8Q-409282UJGnS-17" target="Jd0V6s8Q-409282UJGnS-19"> |
| 49 | + <mxGeometry relative="1" as="geometry" /> |
| 50 | + </mxCell> |
| 51 | + <mxCell id="Jd0V6s8Q-409282UJGnS-17" value="<font face="consolas">计算</font>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fad9d5;strokeColor=#ae4132;" vertex="1" parent="1"> |
| 52 | + <mxGeometry x="460" y="90" width="100" height="30" as="geometry" /> |
| 53 | + </mxCell> |
| 54 | + <mxCell id="Jd0V6s8Q-409282UJGnS-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Jd0V6s8Q-409282UJGnS-19" target="Jd0V6s8Q-409282UJGnS-23"> |
| 55 | + <mxGeometry relative="1" as="geometry" /> |
| 56 | + </mxCell> |
| 57 | + <mxCell id="Jd0V6s8Q-409282UJGnS-19" value="<font face="consolas">存储<br>清除延迟标记<br></font>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fad9d5;strokeColor=#ae4132;" vertex="1" parent="1"> |
| 58 | + <mxGeometry x="460" y="140" width="100" height="30" as="geometry" /> |
| 59 | + </mxCell> |
| 60 | + <mxCell id="Jd0V6s8Q-409282UJGnS-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Jd0V6s8Q-409282UJGnS-23" target="Jd0V6s8Q-409282UJGnS-27"> |
| 61 | + <mxGeometry relative="1" as="geometry" /> |
| 62 | + </mxCell> |
| 63 | + <mxCell id="Jd0V6s8Q-409282UJGnS-23" value="<font face="consolas">返回b.length()</font>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;" vertex="1" parent="1"> |
| 64 | + <mxGeometry x="340" y="140" width="100" height="30" as="geometry" /> |
| 65 | + </mxCell> |
| 66 | + <mxCell id="Jd0V6s8Q-409282UJGnS-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Jd0V6s8Q-409282UJGnS-27" target="Jd0V6s8Q-409282UJGnS-13"> |
| 67 | + <mxGeometry relative="1" as="geometry" /> |
| 68 | + </mxCell> |
| 69 | + <mxCell id="Jd0V6s8Q-409282UJGnS-27" value="<font face="consolas">调用b.length()</font>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#b1ddf0;strokeColor=#10739e;" vertex="1" parent="1"> |
| 70 | + <mxGeometry x="340" y="190" width="100" height="30" as="geometry" /> |
| 71 | + </mxCell> |
| 72 | + <mxCell id="Jd0V6s8Q-409282UJGnS-30" value="<font face="consolas">全程没有调用length()<br>所以不需要计算<br>节省时间<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> |
| 73 | + <mxGeometry x="180" y="280" width="140" height="60" as="geometry" /> |
| 74 | + </mxCell> |
| 75 | + <mxCell id="Jd0V6s8Q-409282UJGnS-31" value="<font face="consolas">首次调用length()时计算<br>并清除延迟标记<br>以后调用时直接返回值<br>无需再算<br></font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1"> |
| 76 | + <mxGeometry x="320" y="280" width="140" height="60" as="geometry" /> |
| 77 | + </mxCell> |
| 78 | + </root> |
| 79 | + </mxGraphModel> |
| 80 | + </diagram> |
| 81 | +</mxfile> |
0 commit comments