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 Summary
ConstructorsConstructorDescriptionSearchResultList(List<T> list) SearchResultList(List<T> list, SearchResultMetadata metadata) -
Method Summary
Modifier 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()Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutableMethods inherited from interface java.util.List
replaceAll, sort, spliteratorMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Constructor Details
-
SearchResultList
public SearchResultList() -
SearchResultList
-
SearchResultList
-
-
Method Details
-
empty
Returns modifiable instance, just to keep the existing behavior. -
performFreeze
protected void performFreeze()- Overrides:
performFreezein classAbstractFreezable
-
getList
-
setList
-
getMetadata
-
setMetadata
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
@NotNull public <TT> @NotNull TT[] toArray(@NotNull @NotNull TT[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
map
-
hashCode
public int hashCode() -
equals
-
toString
-
deepClone
Just to emphasize the semantics. (Is this a good idea? Because then someone could think that clone() is a shallow clone!) -
shallowClone
Just to indicate that clone() is a deep one :) -
toDeeplyFrozenList
Returns deep frozen list - either this or a clone. -
clone
This is actually a deep clone. -
shortDump
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.
-