Sfoglia il codice sorgente

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 anni fa
parent
commit
a77442a9d4
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7
    0
      src/com/dmdirc/util/QueuedLinkedHashSet.java

+ 7
- 0
src/com/dmdirc/util/QueuedLinkedHashSet.java Vedi File

@@ -36,6 +36,13 @@ import java.util.Queue;
36 36
 public class QueuedLinkedHashSet<E> extends LinkedHashSet<E>
37 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 46
     /** {@inheritDoc} */
40 47
     @Override
41 48
     public boolean offer(final E e) {

Loading…
Annulla
Salva