Package org.spdx.library.model
Class ModelSet<T>
java.lang.Object
org.spdx.library.model.ModelCollection<T>
org.spdx.library.model.ModelSet<T>
- All Implemented Interfaces:
Iterable<Object>
,Collection<Object>
public class ModelSet<T> extends ModelCollection<T>
A ModelCollection implemented as a set where all items in the collection are unique based
on equality (not based on equivalence).
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description ModelSet(IModelStore modelStore, String documentUri, String id, String propertyName, ModelCopyManager copyManager, Class<?> type)
-
Method Summary
Modifier and Type Method Description boolean
add(Object element)
boolean
addAll(Collection<? extends Object> c)
Methods inherited from class org.spdx.library.model.ModelCollection
clear, contains, containsAll, getDocumentUri, getId, getModelStore, getPropertyName, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toImmutableList
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
ModelSet
public ModelSet(IModelStore modelStore, String documentUri, String id, String propertyName, @Nullable ModelCopyManager copyManager, @Nullable Class<?> type) throws InvalidSPDXAnalysisException- Parameters:
modelStore
-documentUri
-id
-propertyName
-copyManager
-type
-- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<T>
- Overrides:
add
in classModelCollection<T>
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
- Overrides:
addAll
in classModelCollection<T>
-