- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.tools.SafeList<T>
-
- 所有已实现的接口:
Iterable<T>
,Collection<T>
,List<T>
@ProhibitBean public class SafeList<T> extends Object implements List<T>
-
-
方法概要
修饰符和类型 方法 说明 void
add(int index, T element)
boolean
add(T t)
boolean
addAll(int index, @NotNull Collection<? extends T> c)
boolean
addAll(@NotNull Collection<? extends T> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(@NotNull Collection<?> c)
boolean
equals(Object o)
void
forEach(Consumer<? super T> action)
T
get(int index)
T
getDefault()
@NotNull List<T>
getParent()
int
hashCode()
int
indexOf(Object o)
boolean
isEmpty()
@NotNull Iterator<T>
iterator()
int
lastIndexOf(Object o)
@NotNull ListIterator<T>
listIterator()
@NotNull ListIterator<T>
listIterator(int index)
Stream<T>
parallelStream()
T
remove(int index)
boolean
remove(Object o)
boolean
removeAll(@NotNull Collection<?> c)
boolean
removeIf(Predicate<? super T> filter)
void
replaceAll(UnaryOperator<T> operator)
boolean
retainAll(@NotNull Collection<?> c)
T
set(int index, T element)
SafeList<T>
setDefault(T def)
int
size()
void
sort(Comparator<? super T> c)
Spliterator<T>
spliterator()
Stream<T>
stream()
@NotNull List<T>
subList(int fromIndex, int toIndex)
@NotNull Object[]
toArray()
<T1> @NotNull T1[]
toArray(@NotNull T1[] a)
-
从接口继承的方法 java.util.Collection
toArray
-
-
-
-
方法详细资料
-
getDefault
public T getDefault()
-
contains
public boolean contains(Object o)
-
toArray
@NotNull public @NotNull Object[] toArray()
-
toArray
@NotNull public <T1> @NotNull T1[] toArray(@NotNull @NotNull T1[] a)
-
containsAll
public boolean containsAll(@NotNull @NotNull Collection<?> c)
- 指定者:
containsAll
在接口中Collection<T>
- 指定者:
containsAll
在接口中List<T>
-
addAll
public boolean addAll(@NotNull @NotNull Collection<? extends T> c)
-
addAll
public boolean addAll(int index, @NotNull @NotNull Collection<? extends T> c)
-
removeAll
public boolean removeAll(@NotNull @NotNull Collection<?> c)
-
retainAll
public boolean retainAll(@NotNull @NotNull Collection<?> c)
-
replaceAll
public void replaceAll(UnaryOperator<T> operator)
- 指定者:
replaceAll
在接口中List<T>
-
sort
public void sort(Comparator<? super T> c)
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
lastIndexOf
public int lastIndexOf(Object o)
- 指定者:
lastIndexOf
在接口中List<T>
-
listIterator
@NotNull public @NotNull ListIterator<T> listIterator()
- 指定者:
listIterator
在接口中List<T>
-
listIterator
@NotNull public @NotNull ListIterator<T> listIterator(int index)
- 指定者:
listIterator
在接口中List<T>
-
spliterator
public Spliterator<T> spliterator()
- 指定者:
spliterator
在接口中Collection<T>
- 指定者:
spliterator
在接口中Iterable<T>
- 指定者:
spliterator
在接口中List<T>
-
removeIf
public boolean removeIf(Predicate<? super T> filter)
- 指定者:
removeIf
在接口中Collection<T>
-
stream
public Stream<T> stream()
- 指定者:
stream
在接口中Collection<T>
-
parallelStream
public Stream<T> parallelStream()
- 指定者:
parallelStream
在接口中Collection<T>
-
-