Class UnmodifiableListWithHref<E>
- java.lang.Object
-
- org.ovirt.api.metamodel.runtime.util.UnmodifiableListWithHref<E>
-
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,List<E>
,ListWithHref<E>
public final class UnmodifiableListWithHref<E> extends Object implements Collection<E>, ListWithHref<E>, Serializable
This class is an copy of java.util.Collections.UnmodifiableList class. Since this class can't be used outside of its own package. We need to have copy of this class, because we need to store 'href' attribute to properly support 'follow link' method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableListWithHref(ListWithHref<? extends E> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, Collection<? extends E> c)
boolean
addAll(Collection<? extends E> coll)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> coll)
boolean
equals(Object o)
E
get(int index)
int
hashCode()
String
href()
void
href(String href)
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<?> coll)
boolean
retainAll(Collection<?> coll)
E
set(int index, E element)
int
size()
ListWithHref<E>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<T> T[]
toArray(T[] a)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
UnmodifiableListWithHref
public UnmodifiableListWithHref(ListWithHref<? extends E> list)
-
-
Method Detail
-
href
public String href()
- Specified by:
href
in interfaceListWithHref<E>
-
href
public void href(String href)
- Specified by:
href
in interfaceListWithHref<E>
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(E e)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> coll)
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
addAll
public boolean addAll(Collection<? extends E> coll)
-
removeAll
public boolean removeAll(Collection<?> coll)
-
retainAll
public boolean retainAll(Collection<?> coll)
-
clear
public void clear()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<E>
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfaceList<E>
-
subList
public ListWithHref<E> subList(int fromIndex, int toIndex)
-
-