GWT 支持双端队列吗?
...
private Deque<PagePresenter> pageHistory = new ArrayDeque<PagePresenter>();
...
[ERROR] [test_app] - Line 8: No source code is available for type java.util.Deque<E>; did you forget to inherit a required module?
我需要自己实施吗?
谢谢, /S
...
private Deque<PagePresenter> pageHistory = new ArrayDeque<PagePresenter>();
...
[ERROR] [test_app] - Line 8: No source code is available for type java.util.Deque<E>; did you forget to inherit a required module?
do I need to implement it myself?
Thanks,
/S
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GWT 包含一个
LinkedList
实现,该实现实现部分Dequeue
接口(addFirst()
、getFirst()
、removeFirst()
、addLast()
、getLast()
、removeLast()
)。如果您需要完整的 Dequeue 实现,您需要自己实现它(或者至少是 LinkedList 上缺少的方法)。
GWT includes a
LinkedList
implementation that implements part of theDequeue
interface (addFirst()
,getFirst()
,removeFirst()
,addLast()
,getLast()
,removeLast()
).If you need a full
Dequeue
implementation you need to implement it (or at least the missing methods onLinkedList
) yourself.