Class SetAsList<E>
- java.lang.Object
-
- com.atlassian.confluence.impl.util.collections.SetAsList<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
public class SetAsList<E> extends Object implements List<E>
A List wrapper around an ordered Set. This is useful when a hibernate field must be mapped as an ordered Set in order to work with certain join queries, but return a List from the property.- Since:
- 5.10
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)booleanadd(E o)booleanaddAll(int index, Collection c)booleanaddAll(Collection c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object other)Eget(int index)inthashCode()intindexOf(Object o)booleanisEmpty()Iterator<E>iterator()intlastIndexOf(Object o)ListIterator<E>listIterator()ListIterator<E>listIterator(int index)Eremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Eset(int index, E element)intsize()List<E>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
equals
public boolean equals(Object other)
-
hashCode
public int hashCode()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
add
public boolean add(E o)
-
remove
public boolean remove(Object o)
-
addAll
public boolean addAll(Collection c)
-
clear
public void clear()
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
removeAll
public boolean removeAll(Collection<?> c)
-
toArray
public <T> T[] toArray(T[] a)
-
addAll
public boolean addAll(int index, Collection c)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIteratorin interfaceList<E>
-
retainAll
public boolean retainAll(Collection<?> c)
-
-