Package it.unimi.dsi.fastutil.booleans
Interface BooleanListIterator
-
- All Superinterfaces:
BidirectionalIterator<Boolean>
,BooleanBidirectionalIterator
,BooleanIterator
,Iterator<Boolean>
,ListIterator<Boolean>
,ObjectBidirectionalIterator<Boolean>
,ObjectIterator<Boolean>
- All Known Implementing Classes:
AbstractBooleanListIterator
,BooleanIterators.EmptyIterator
,BooleanIterators.UnmodifiableListIterator
public interface BooleanListIterator extends BooleanBidirectionalIterator, ListIterator<Boolean>
A type-specific bidirectional iterator that is also aListIterator
.This interface merges the methods provided by a
ListIterator
and a type-specificBidirectionalIterator
. Moreover, it provides type-specific versions ofadd()
andset()
.- See Also:
ListIterator
,BidirectionalIterator
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
add(boolean k)
Inserts the specified element into the list (optional operation).default void
add(Boolean k)
Deprecated.Please use the corresponding type-specific method instead.default Boolean
next()
Deprecated.Please use the corresponding type-specific method instead.default Boolean
previous()
Deprecated.Please use the corresponding type-specific method instead.default void
remove()
Removes from the underlying collection the last element returned by this iterator (optional operation).default void
set(boolean k)
Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).default void
set(Boolean k)
Deprecated.Please use the corresponding type-specific method instead.-
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious
-
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanBidirectionalIterator
back, previousBoolean, skip
-
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanIterator
forEachRemaining, forEachRemaining, nextBoolean
-
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, nextIndex, previousIndex
-
-
-
-
Method Detail
-
set
default void set(boolean k)
Replaces the last element returned bynext()
orprevious()
with the specified element (optional operation).- Parameters:
k
- the element used to replace the last element returned.This default implementation just throws an
UnsupportedOperationException
.- See Also:
ListIterator.set(Object)
-
add
default void add(boolean k)
Inserts the specified element into the list (optional operation).This default implementation just throws an
UnsupportedOperationException
.- Parameters:
k
- the element to insert.- See Also:
ListIterator.add(Object)
-
remove
default void remove()
Removes from the underlying collection the last element returned by this iterator (optional operation).This default implementation just throws an
UnsupportedOperationException
.- Specified by:
remove
in interfaceIterator<Boolean>
- Specified by:
remove
in interfaceListIterator<Boolean>
- See Also:
ListIterator.remove()
-
set
@Deprecated default void set(Boolean k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
set
in interfaceListIterator<Boolean>
-
add
@Deprecated default void add(Boolean k)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
add
in interfaceListIterator<Boolean>
-
next
@Deprecated default Boolean next()
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
next
in interfaceBooleanIterator
- Specified by:
next
in interfaceIterator<Boolean>
- Specified by:
next
in interfaceListIterator<Boolean>
-
previous
@Deprecated default Boolean previous()
Deprecated.Please use the corresponding type-specific method instead.Returns the previous element from the collection.- Specified by:
previous
in interfaceBidirectionalIterator<Boolean>
- Specified by:
previous
in interfaceBooleanBidirectionalIterator
- Specified by:
previous
in interfaceListIterator<Boolean>
- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
-
-