Package org.dspace.app.rest.model
Class MetadataValueList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<MetadataValue>
-
- org.dspace.app.rest.model.MetadataValueList
-
- All Implemented Interfaces:
Iterable<MetadataValue>,Collection<MetadataValue>,List<MetadataValue>
public class MetadataValueList extends AbstractList<MetadataValue>
Type-safe wrapper for a list ofMetadataValues for use withMetadataConverter, so it can be invoked properly via calls toConverterService.toRest(Object, Projection).
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description MetadataValueList(List<MetadataValue> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataValueget(int index)intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, 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
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
MetadataValueList
public MetadataValueList(List<MetadataValue> list)
-
-
Method Detail
-
get
public MetadataValue get(int index)
- Specified by:
getin interfaceList<MetadataValue>- Specified by:
getin classAbstractList<MetadataValue>
-
size
public int size()
- Specified by:
sizein interfaceCollection<MetadataValue>- Specified by:
sizein interfaceList<MetadataValue>- Specified by:
sizein classAbstractCollection<MetadataValue>
-
-