Package org.dspace.app.rest.model
Class MetadataValueList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<org.dspace.content.MetadataValue>
-
- org.dspace.app.rest.model.MetadataValueList
-
- All Implemented Interfaces:
Iterable<org.dspace.content.MetadataValue>,Collection<org.dspace.content.MetadataValue>,List<org.dspace.content.MetadataValue>
public class MetadataValueList extends AbstractList<org.dspace.content.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<org.dspace.content.MetadataValue> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dspace.content.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<org.dspace.content.MetadataValue> list)
-
-
Method Detail
-
get
public org.dspace.content.MetadataValue get(int index)
- Specified by:
getin interfaceList<org.dspace.content.MetadataValue>- Specified by:
getin classAbstractList<org.dspace.content.MetadataValue>
-
size
public int size()
- Specified by:
sizein interfaceCollection<org.dspace.content.MetadataValue>- Specified by:
sizein interfaceList<org.dspace.content.MetadataValue>- Specified by:
sizein classAbstractCollection<org.dspace.content.MetadataValue>
-
-