- All Known Implementing Classes:
LongArrayHeap
Interface for a
Queue with primitive long data elements.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanaddAll(Collection<? extends Long> c) booleanaddAsLong(long e) default booleandefault booleancontainsAll(Collection<?> c) booleancontainsAsLong(long e) default Longelement()longdefault booleanisEmpty()default booleanbooleanofferAsLong(long e) default @Nullable Longpeek()default @Nullable Longpoll()default Longremove()default booleandefault booleanremoveAll(Collection<?> c) longbooleanremoveAsLong(long e) default booleanretainAll(Collection<?> c) Methods inherited from interface java.util.Collection
clear, equals, hashCode, iterator, parallelStream, removeIf, size, spliterator, stream, toArray, toArray, toArray
-
Method Details
-
addAsLong
boolean addAsLong(long e) - See Also:
-
add
-
addAll
- Specified by:
addAllin interfaceCollection<Long>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Long>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Long>
-
offerAsLong
boolean offerAsLong(long e) - See Also:
-
offer
-
removeAsLong
long removeAsLong()- See Also:
-
remove
-
removeAsLong
boolean removeAsLong(long e) - See Also:
-
remove
- Specified by:
removein interfaceCollection<Long>
-
poll
-
element
-
elementAsLong
long elementAsLong()- See Also:
-
peek
-
isEmpty
default boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Long>
-
containsAsLong
boolean containsAsLong(long e) -
contains
- Specified by:
containsin interfaceCollection<Long>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Long>
-