- 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>
-
-
方法概要
修饰符和类型 方法 说明 voidadd(int index, T element)booleanadd(T t)booleanaddAll(int index, @NotNull Collection<? extends T> c)booleanaddAll(@NotNull Collection<? extends T> c)voidclear()booleancontains(Object o)booleancontainsAll(@NotNull Collection<?> c)booleanequals(Object o)voidforEach(Consumer<? super T> action)Tget(int index)TgetDefault()@NotNull List<T>getParent()inthashCode()intindexOf(Object o)booleanisEmpty()@NotNull Iterator<T>iterator()intlastIndexOf(Object o)@NotNull ListIterator<T>listIterator()@NotNull ListIterator<T>listIterator(int index)Stream<T>parallelStream()Tremove(int index)booleanremove(Object o)booleanremoveAll(@NotNull Collection<?> c)booleanremoveIf(Predicate<? super T> filter)voidreplaceAll(UnaryOperator<T> operator)booleanretainAll(@NotNull Collection<?> c)Tset(int index, T element)SafeList<T>setDefault(T def)intsize()voidsort(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>
-
-