Class PieceIterator
java.lang.Object
VASSAL.counters.PieceIterator
An iterator for GamePieces. Takes an optional PieceFilter to
extract GamePiece instances from an Enumeration or Iterator.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPieceIterator
(Enumeration<T> e, PieceFilter f) Deprecated, for removal: This API element is subject to removal in a future version.PieceIterator
(Iterator<? extends GamePiece> i) PieceIterator
(Iterator<? extends GamePiece> i, PieceFilter f) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static <T extends GamePiece>
PieceIteratorvisible
(Enumeration<T> e) Deprecated, for removal: This API element is subject to removal in a future version.static <T extends GamePiece>
PieceIterator
-
Field Details
-
VISIBLE
-
-
Constructor Details
-
PieceIterator
-
PieceIterator
-
PieceIterator
@Deprecated(since="2021-12-01", forRemoval=true) public PieceIterator(Enumeration<T> e, PieceFilter f) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
nextPiece
-
hasMoreElements
public boolean hasMoreElements() -
visible
-
visible
@Deprecated(since="2021-12-01", forRemoval=true) public static <T extends GamePiece> PieceIterator visible(Enumeration<T> e) Deprecated, for removal: This API element is subject to removal in a future version.
-