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 booleanadd(Object element)booleanaddAll(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, toImmutableListMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
addin interfaceCollection<T>- Overrides:
addin classModelCollection<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>- Overrides:
addAllin classModelCollection<T>
-