Package com.evolveum.midpoint.schema
Class SearchResultList<T>
- java.lang.Object
-
- com.evolveum.midpoint.prism.AbstractFreezable
-
- com.evolveum.midpoint.schema.SearchResultList<T>
-
- All Implemented Interfaces:
Freezable,ShortDumpable,Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>
public class SearchResultList<T> extends AbstractFreezable implements List<T>, Cloneable, Serializable, ShortDumpable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SearchResultList()SearchResultList(List<T> list)SearchResultList(List<T> list, SearchResultMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanadd(T e)booleanaddAll(int index, @NotNull Collection<? extends T> c)booleanaddAll(@NotNull Collection<? extends T> c)voidclear()SearchResultList<T>clone()This is actually a deep clone.booleancontains(Object o)booleancontainsAll(@NotNull Collection<?> c)SearchResultList<T>deepClone()Just to emphasize the semantics.booleanequals(Object obj)Tget(int index)List<T>getList()SearchResultMetadatagetMetadata()inthashCode()intindexOf(Object o)booleanisEmpty()@NotNull Iterator<T>iterator()intlastIndexOf(Object o)@NotNull ListIterator<T>listIterator()@NotNull ListIterator<T>listIterator(int index)<R> SearchResultList<R>map(Function<T,R> mappingFunction)protected voidperformFreeze()Tremove(int index)booleanremove(Object o)booleanremoveAll(@NotNull Collection<?> c)booleanretainAll(@NotNull Collection<?> c)Tset(int index, T element)voidsetList(List<T> list)voidsetMetadata(SearchResultMetadata metadata)SearchResultList<T>shallowClone()Just to indicate that clone() is a deep one :)voidshortDump(StringBuilder sb)Show the content of the object intended for diagnostics.intsize()@NotNull List<T>subList(int fromIndex, int toIndex)@NotNull Object[]toArray()<TT> @NotNull TT[]toArray(@NotNull TT[] a)SearchResultList<T>toDeeplyFrozenList()Returns deep frozen list - either this or a clone.StringtoString()-
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Constructor Detail
-
SearchResultList
public SearchResultList()
-
SearchResultList
public SearchResultList(List<T> list, SearchResultMetadata metadata)
-
-
Method Detail
-
performFreeze
protected void performFreeze()
- Overrides:
performFreezein classAbstractFreezable
-
getMetadata
public SearchResultMetadata getMetadata()
-
setMetadata
public void setMetadata(SearchResultMetadata metadata)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
@NotNull public @NotNull Object[] toArray()
-
toArray
@NotNull public <TT> @NotNull TT[] toArray(@NotNull @NotNull TT[] a)
-
add
public boolean add(T e)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(@NotNull @NotNull Collection<?> c)- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<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)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
@NotNull public @NotNull ListIterator<T> listIterator()
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
@NotNull public @NotNull ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin interfaceList<T>
-
map
public <R> SearchResultList<R> map(Function<T,R> mappingFunction)
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
deepClone
@Experimental public SearchResultList<T> deepClone()
Just to emphasize the semantics. (Is this a good idea? Because then someone could think that clone() is a shallow clone!)
-
shallowClone
@Experimental public SearchResultList<T> shallowClone()
Just to indicate that clone() is a deep one :)
-
toDeeplyFrozenList
@Experimental public SearchResultList<T> toDeeplyFrozenList()
Returns deep frozen list - either this or a clone.
-
clone
public SearchResultList<T> clone()
This is actually a deep clone.
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpableShow the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDumpin interfaceShortDumpable- Parameters:
sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
-