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 void
add(int index, T element)
boolean
add(T e)
boolean
addAll(int index, @NotNull Collection<? extends T> c)
boolean
addAll(@NotNull Collection<? extends T> c)
void
clear()
SearchResultList<T>
clone()
This is actually a deep clone.boolean
contains(Object o)
boolean
containsAll(@NotNull Collection<?> c)
SearchResultList<T>
deepClone()
Just to emphasize the semantics.boolean
equals(Object obj)
T
get(int index)
List<T>
getList()
SearchResultMetadata
getMetadata()
int
hashCode()
int
indexOf(Object o)
boolean
isEmpty()
@NotNull Iterator<T>
iterator()
int
lastIndexOf(Object o)
@NotNull ListIterator<T>
listIterator()
@NotNull ListIterator<T>
listIterator(int index)
<R> SearchResultList<R>
map(Function<T,R> mappingFunction)
protected void
performFreeze()
T
remove(int index)
boolean
remove(Object o)
boolean
removeAll(@NotNull Collection<?> c)
boolean
retainAll(@NotNull Collection<?> c)
T
set(int index, T element)
void
setList(List<T> list)
void
setMetadata(SearchResultMetadata metadata)
SearchResultList<T>
shallowClone()
Just to indicate that clone() is a deep one :)void
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.int
size()
@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.String
toString()
-
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:
performFreeze
in 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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in 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:
lastIndexOf
in interfaceList<T>
-
listIterator
@NotNull public @NotNull ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
@NotNull public @NotNull ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in 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: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.
-
-