sequence-sequence.html

来自「经典的数据结构源代码(java 实现)」· HTML 代码 · 共 24 行

HTML
24
字号
<html><head><title>Code Fragment</title></head><body text=#000000><center></center><br><br><dl><dd><pre><font color=#ff0080>/** * An interface for a sequence, a data structure supporting all * operations of a deque, indexed list and position list. */</font><font color=#8000a0>public</font> <font color=#8000a0><font color=#ff8000>interface</font> </font>Sequence&lt;E&gt;      <font color=#8000a0><font color=#ff8000>extends</font> </font>Deque&lt;E&gt;, IndexList&lt;E&gt;, PositionList&lt;E&gt; {  <font color = #ff0080>/** Returns the position containing the element at the given index. */</font>  <font color=#8000a0><font color=#8000a0>public</font> </font>Position&lt;E&gt; <font color=#0000ff>atIndex</font>(<font color=#8000a0>int</font> r) <font color=#8000a0><font color=#ff8000>throws</font> </font>BoundaryViolationException;  <font color = #ff0080>/** Returns the index of the element stored at the given position. */</font>  <font color=#8000a0><font color=#8000a0>public</font> </font><font color=#8000a0>int</font> <font color=#0000ff>indexOf</font>(Position&lt;E&gt; p) <font color=#8000a0><font color=#ff8000>throws</font> </font>InvalidPositionException;}</dl></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?