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
ConstructorDescriptionSearchResultList
(List<T> list) SearchResultList
(List<T> list, SearchResultMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, @NotNull Collection<? extends T> c) boolean
addAll
(@NotNull Collection<? extends T> c) void
clear()
clone()
This is actually a deep clone.boolean
boolean
containsAll
(@NotNull Collection<?> c) Just to emphasize the semantics.static <T> SearchResultList<T>
empty()
Returns modifiable instance, just to keep the existing behavior.boolean
get
(int index) getList()
int
hashCode()
int
boolean
isEmpty()
iterator()
int
@NotNull ListIterator<T>
@NotNull ListIterator<T>
listIterator
(int index) <R> SearchResultList<R>
protected void
remove
(int index) boolean
boolean
removeAll
(@NotNull Collection<?> c) boolean
retainAll
(@NotNull Collection<?> c) void
void
setMetadata
(SearchResultMetadata metadata) Just to indicate that clone() is a deep one :)void
Show the content of the object intended for diagnostics.int
size()
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.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 Details
-
SearchResultList
public SearchResultList() -
SearchResultList
-
SearchResultList
-
-
Method Details
-
empty
Returns modifiable instance, just to keep the existing behavior. -
performFreeze
protected void performFreeze()- Overrides:
performFreeze
in 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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in 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. -
transform
@NotNull public <T2> @NotNull SearchResultList<T2> transform(@NotNull @NotNull Function<T, T2> transformer) -
shortDump
Description copied from interface:ShortDumpable
Show 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:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-