Collections.EmptyListIterator 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個沒有元素的清單迭代器。
[Android.Runtime.Register("emptyListIterator", "()Ljava/util/ListIterator;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.IListIterator EmptyListIterator();
[<Android.Runtime.Register("emptyListIterator", "()Ljava/util/ListIterator;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member EmptyListIterator : unit -> Java.Util.IListIterator
傳回
空清單迭代器
- 屬性
備註
回傳一個沒有元素的清單迭代器。 更精確地說,
<烏爾><李>Iterator#hasNext hasNext,永遠ListIterator#hasPrevious hasPrevious回來false。</李><麗>Iterator#next next,總是ListIterator#previous previous丟。NoSuchElementException</李><麗>Iterator#remove remove,總是ListIterator#set set丟。IllegalStateException</李><莉>ListIterator#add add總是丟UnsupportedOperationException。</李><莉>ListIterator#nextIndex nextIndex總是回來0。</李><莉>ListIterator#previousIndex previousIndex總是回來-1。</li></ul>
此方法的實作允許但非強制,從多次呼叫中回傳相同物件。
在 1.7 版本中加入。
的 java.util.Collections.emptyListIterator()Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。