瀏覽代碼

Add a QueueLinkedHashSet class

Change-Id: If58397d37b89c8fe6e099c47fb4d26fdc4589b49
Reviewed-on: http://gerrit.dmdirc.com/1632
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.5
Greg Holmes 13 年之前
父節點
當前提交
a77442a9d4
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/com/dmdirc/util/QueuedLinkedHashSet.java

+ 7
- 0
src/com/dmdirc/util/QueuedLinkedHashSet.java 查看文件

36
 public class QueuedLinkedHashSet<E> extends LinkedHashSet<E>
36
 public class QueuedLinkedHashSet<E> extends LinkedHashSet<E>
37
         implements Queue<E> {
37
         implements Queue<E> {
38
 
38
 
39
+    /**
40
+     * A version number for this class. It should be changed whenever the class
41
+     * structure is changed (or anything else that would prevent serialized
42
+     * objects being unserialized with the new class).
43
+     */
44
+    private static final long serialVersionUID = 1;
45
+
39
     /** {@inheritDoc} */
46
     /** {@inheritDoc} */
40
     @Override
47
     @Override
41
     public boolean offer(final E e) {
48
     public boolean offer(final E e) {

Loading…
取消
儲存