Class TaggingPresetReader.HashSetWithLast<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<E>
-
- org.openstreetmap.josm.gui.tagging.presets.TaggingPresetReader.HashSetWithLast<E>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<E>
,Collection<E>
,Set<E>
- Enclosing class:
- TaggingPresetReader
static class TaggingPresetReader.HashSetWithLast<E> extends LinkedHashSet<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected E
last
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description HashSetWithLast()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E e)
E
getLast()
Returns the last inserted element.-
Methods inherited from class java.util.LinkedHashSet
spliterator
-
Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, remove, size
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HashSetWithLast
HashSetWithLast()
-
-