public class Iterators extends Object
| 构造器和说明 |
|---|
Iterators() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <S,T> Iterator<T> |
convert(Iterator<S> iterator,
Function<S,T> converter) |
static <E> Enumeration<E> |
enumeration(Iterable<E> iterable) |
static <E> Enumeration<E> |
enumeration(Iterator<E> iterator) |
static <E> E |
get(Iterator<? extends E> iterator,
int position) |
static <E> E |
get(Iterator<? extends E> iterator,
int position,
E defaultValue) |
static <E> E |
getLast(Iterator<? extends E> iterator,
E defaultValue) |
static <E> E |
getLast(Iterator<E> iterator) |
static <E> E |
getNext(Iterator<? extends E> iterator) |
static <E> E |
getNext(Iterator<? extends E> iterator,
E defaultValue) |
static <E> Iterator<E> |
iterator(Enumeration<E> enumeration) |
static int |
skip(Iterator<?> iterator,
int num) |
public static <E> Iterator<E> iterator(Enumeration<E> enumeration)
public static <E> Enumeration<E> enumeration(Iterable<E> iterable)
public static <E> Enumeration<E> enumeration(Iterator<E> iterator)
@Nullable public static <E> E getNext(Iterator<? extends E> iterator, @Nullable E defaultValue)
public static <E> E getLast(Iterator<E> iterator)
@Nullable public static <E> E getLast(Iterator<? extends E> iterator, @Nullable E defaultValue)
@Nullable public static <E> E get(Iterator<? extends E> iterator, int position, @Nullable E defaultValue)
public static int skip(Iterator<?> iterator, int num)
Copyright © 2024 fossc. All rights reserved.