Package de.geolykt.starloader.util
Class OrderedCollection<E extends Comparable<E>>
java.lang.Object
java.util.AbstractCollection<E>
de.geolykt.starloader.util.OrderedCollection<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
OrderedCollection
public OrderedCollection()
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceCollection<E extends Comparable<E>>- Specified by:
iteratorin interfaceIterable<E extends Comparable<E>>- Specified by:
iteratorin classAbstractCollection<E extends Comparable<E>>
-
size
public int size()- Specified by:
sizein interfaceCollection<E extends Comparable<E>>- Specified by:
sizein classAbstractCollection<E extends Comparable<E>>
-
next
-
get
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E extends Comparable<E>>- Overrides:
isEmptyin classAbstractCollection<E extends Comparable<E>>
-
setNext
-
remove
- Specified by:
removein interfaceCollection<E extends Comparable<E>>- Overrides:
removein classAbstractCollection<E extends Comparable<E>>
-
add
- Specified by:
addin interfaceCollection<E extends Comparable<E>>- Overrides:
addin classAbstractCollection<E extends Comparable<E>>
-