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 void
add(int index, E element)
boolean
add(E o)
boolean
addAll(int index, Collection c)
boolean
addAll(Collection c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
boolean
equals(Object other)
E
get(int index)
int
hashCode()
int
indexOf(Object o)
boolean
isEmpty()
Iterator<E>
iterator()
int
lastIndexOf(Object o)
ListIterator<E>
listIterator()
ListIterator<E>
listIterator(int index)
E
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
E
set(int index, E element)
int
size()
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:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in 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:
lastIndexOf
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfaceList<E>
-
retainAll
public boolean retainAll(Collection<?> c)
-
-