IQueue.Element Method Reference Feedback Definition Namespace: Java.Util Assembly: Mono.Android.dll Retrieves, but does not remove, the head of this queue. C# Menyalin [Android.Runtime.Register("element", "()Ljava/lang/Object;", "GetElementHandler:Java.Util.IQueueInvoker, Mono.Android...
D、PriorityQueue是不同于先进先出队列的另一种队列。每次从队列中取出的是具有最高优先权的元素。Concur...
which element is removed from the queue is a function of the queue's ordering policy, which differs from implementation to implementation. Theremove()andpoll()methods differ only in their behavior when the queue is empty: theremove()method throws an exception, while thepoll()method returnsnull...
public interface Queue<E> extends Collection<E> { E element(); boolean offer(E e); E peek(); E poll(); E remove(); } EachQueuemethod exists in two forms: (1) one throws an exception if the operation fails, and (2) the other returns a special value if the operation fails (eith...
toXml public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) Parameters: xmlWriter rootElementName Throws: XMLStreamException Applies to Azure SDK for Java Latest在GitHub 上與我們協作 可以在 GitHub 上找到此内容的源,还可以在其中创建和查看问题和拉取请求。 有关详细信息,请参阅参与者...
toXml public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) Parameters: xmlWriter rootElementName Throws: XMLStreamException Applies to Azure SDK for Java Latest在GitHub 上與我們協作 可以在 GitHub 上找到此内容的源,还可以在其中创建和查看问题和拉取请求。 有关详细信息,请参阅参与者...
* Retrieves and removes the head of this queue. This method differs * from {@link #poll poll} only in that it throws an exception if this * queue is empty. * * @return the head of this queue * @throws NoSuchElementException if this queue is empty ...
Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions. When using a capacity-restricted queue, this method is generally preferable to#add, which can fail to insert an element only by throwing an exception. ...
* Inserts the specified element at the tail of this queue if it is * possible to do so immediately without exceeding the queue's capacity, * returning {@code true} upon success and {@code false} if this queue * is full. * When using a capacity-restricted queue, this method is general...
* Inserts the specified element at the tail of this queue. * As the queue is unbounded, this method will never throw * {@link IllegalStateException} or return {@code false}. * * @return {@code true} (as specified by {@link Collection#add}) ...