Class ArrayKeyValueSupplierIterator<K,V>
- java.lang.Object
-
- io.usethesource.capsule.util.iterator.ArrayKeyValueSupplierIterator<K,V>
-
- All Implemented Interfaces:
SupplierIterator<K,V>
,java.util.function.Supplier<V>
,java.util.Iterator<K>
public class ArrayKeyValueSupplierIterator<K,V> extends java.lang.Object implements SupplierIterator<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
currentIndex
(package private) V
currentValue
(package private) int
end
(package private) java.lang.Object[]
values
-
Constructor Summary
Constructors Constructor Description ArrayKeyValueSupplierIterator(java.lang.Object[] values, int start, int end)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get()
boolean
hasNext()
K
next()
static <K,V>
ArrayKeyValueSupplierIterator<K,V>of(java.lang.Object[] array)
static <K,V>
ArrayKeyValueSupplierIterator<K,V>of(java.lang.Object[] array, int start, int length)
void
remove()
-
-
-
Field Detail
-
values
final java.lang.Object[] values
-
end
final int end
-
currentIndex
int currentIndex
-
currentValue
V currentValue
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<K>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<K>
-
of
public static <K,V> ArrayKeyValueSupplierIterator<K,V> of(java.lang.Object[] array)
-
of
public static <K,V> ArrayKeyValueSupplierIterator<K,V> of(java.lang.Object[] array, int start, int length)
-
-