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:
- 
Constructor SummaryConstructorsConstructorDescriptionSearchResultList(List<T> list) SearchResultList(List<T> list, SearchResultMetadata metadata) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, @NotNull Collection<? extends T> c) booleanaddAll(@NotNull Collection<? extends T> c) voidclear()clone()This is actually a deep clone.booleanbooleancontainsAll(@NotNull Collection<?> c) Just to emphasize the semantics.static <T> SearchResultList<T>empty()Returns modifiable instance, just to keep the existing behavior.booleanget(int index) getList()inthashCode()intbooleanisEmpty()iterator()int@NotNull ListIterator<T>@NotNull ListIterator<T>listIterator(int index) <R> SearchResultList<R>protected voidremove(int index) booleanbooleanremoveAll(@NotNull Collection<?> c) booleanretainAll(@NotNull Collection<?> c) voidvoidsetMetadata(SearchResultMetadata metadata) Just to indicate that clone() is a deep one :)voidShow the content of the object intended for diagnostics.intsize()subList(int fromIndex, int toIndex) @NotNull Object[]toArray()<TT> @NotNull TT[]toArray(@NotNull TT[] a) Returns deep frozen list - either this or a clone.toString()<T2> @NotNull SearchResultList<T2>Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezablefreeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface com.evolveum.midpoint.prism.FreezablecheckImmutable, checkMutableMethods inherited from interface java.util.ListreplaceAll, sort, spliteratorMethods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDumpLazily
- 
Constructor Details- 
SearchResultListpublic SearchResultList()
- 
SearchResultList
- 
SearchResultList
 
- 
- 
Method Details- 
emptyReturns modifiable instance, just to keep the existing behavior.
- 
performFreezeprotected void performFreeze()- Overrides:
- performFreezein class- AbstractFreezable
 
- 
getList
- 
setList
- 
getMetadata
- 
setMetadata
- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
contains
- 
iterator
- 
toArray
- 
toArray@NotNull public <TT> @NotNull TT[] toArray(@NotNull @NotNull TT[] a) 
- 
add
- 
remove
- 
containsAll- Specified by:
- containsAllin interface- Collection<T>
- Specified by:
- containsAllin interface- List<T>
 
- 
addAll
- 
addAll
- 
removeAll
- 
retainAll
- 
clearpublic void clear()
- 
get
- 
set
- 
add
- 
remove
- 
indexOf
- 
lastIndexOf- Specified by:
- lastIndexOfin interface- List<T>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<T>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<T>
 
- 
subList
- 
map
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
- 
deepCloneJust to emphasize the semantics. (Is this a good idea? Because then someone could think that clone() is a shallow clone!)
- 
shallowCloneJust to indicate that clone() is a deep one :)
- 
toDeeplyFrozenListReturns deep frozen list - either this or a clone.
- 
cloneThis is actually a deep clone.
- 
transform@NotNull public <T2> @NotNull SearchResultList<T2> transform(@NotNull @NotNull Function<T, T2> transformer) 
- 
shortDumpDescription 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 interface- ShortDumpable
- Parameters:
- sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
 
 
-