Package psidev.psi.mi.jami.model.impl
Class DefaultVariableParameterValueSet
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultVariableParameterValueSet
-
- All Implemented Interfaces:
Iterable<VariableParameterValue>
,Collection<VariableParameterValue>
,Set<VariableParameterValue>
,VariableParameterValueSet
public class DefaultVariableParameterValueSet extends Object implements VariableParameterValueSet
Default implementation for VariableParameterValueSet Notes: The equals and hashcode methods have been overridden to be consistent with VariableParameterValueSetComparator- Since:
22/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultVariableParameterValueSet()
Constructor for DefaultVariableParameterValueSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(VariableParameterValue variableParameterValue)
addboolean
addAll(Collection<? extends VariableParameterValue> variableParameterValues)
void
clear()
clearboolean
contains(Object o)
boolean
containsAll(Collection<?> objects)
boolean
equals(Object o)
int
hashCode()
protected void
initialiseVatiableParameterValuesSet()
initialiseVatiableParameterValuesSetprotected void
initialiseVatiableParameterValuesSetWith(Set<VariableParameterValue> paramValues)
initialiseVatiableParameterValuesSetWithboolean
isEmpty()
isEmptyIterator<VariableParameterValue>
iterator()
iteratorboolean
remove(Object o)
boolean
removeAll(Collection<?> objects)
boolean
retainAll(Collection<?> objects)
int
size()
sizeObject[]
toArray()
toArray<T> T[]
toArray(T[] ts)
toArray-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
spliterator
-
-
-
-
Method Detail
-
initialiseVatiableParameterValuesSet
protected void initialiseVatiableParameterValuesSet()
initialiseVatiableParameterValuesSet
-
initialiseVatiableParameterValuesSetWith
protected void initialiseVatiableParameterValuesSetWith(Set<VariableParameterValue> paramValues)
initialiseVatiableParameterValuesSetWith
- Parameters:
paramValues
- aSet
object.
-
size
public int size()
size
- Specified by:
size
in interfaceCollection<VariableParameterValue>
- Specified by:
size
in interfaceSet<VariableParameterValue>
- Returns:
- a int.
-
isEmpty
public boolean isEmpty()
isEmpty
- Specified by:
isEmpty
in interfaceCollection<VariableParameterValue>
- Specified by:
isEmpty
in interfaceSet<VariableParameterValue>
- Returns:
- a boolean.
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<VariableParameterValue>
- Specified by:
contains
in interfaceSet<VariableParameterValue>
-
iterator
public Iterator<VariableParameterValue> iterator()
iterator
- Specified by:
iterator
in interfaceCollection<VariableParameterValue>
- Specified by:
iterator
in interfaceIterable<VariableParameterValue>
- Specified by:
iterator
in interfaceSet<VariableParameterValue>
- Returns:
- a
Iterator
object.
-
toArray
public Object[] toArray()
toArray
- Specified by:
toArray
in interfaceCollection<VariableParameterValue>
- Specified by:
toArray
in interfaceSet<VariableParameterValue>
- Returns:
- an array of
Object
objects.
-
toArray
public <T> T[] toArray(T[] ts)
toArray
- Specified by:
toArray
in interfaceCollection<VariableParameterValue>
- Specified by:
toArray
in interfaceSet<VariableParameterValue>
- Type Parameters:
T
- a T object.- Parameters:
ts
- an array of T objects.- Returns:
- an array of T objects.
-
add
public boolean add(VariableParameterValue variableParameterValue)
add
- Specified by:
add
in interfaceCollection<VariableParameterValue>
- Specified by:
add
in interfaceSet<VariableParameterValue>
- Parameters:
variableParameterValue
- aVariableParameterValue
object.- Returns:
- a boolean.
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<VariableParameterValue>
- Specified by:
remove
in interfaceSet<VariableParameterValue>
-
containsAll
public boolean containsAll(Collection<?> objects)
- Specified by:
containsAll
in interfaceCollection<VariableParameterValue>
- Specified by:
containsAll
in interfaceSet<VariableParameterValue>
-
addAll
public boolean addAll(Collection<? extends VariableParameterValue> variableParameterValues)
- Specified by:
addAll
in interfaceCollection<VariableParameterValue>
- Specified by:
addAll
in interfaceSet<VariableParameterValue>
-
retainAll
public boolean retainAll(Collection<?> objects)
- Specified by:
retainAll
in interfaceCollection<VariableParameterValue>
- Specified by:
retainAll
in interfaceSet<VariableParameterValue>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAll
in interfaceCollection<VariableParameterValue>
- Specified by:
removeAll
in interfaceSet<VariableParameterValue>
-
clear
public void clear()
clear
- Specified by:
clear
in interfaceCollection<VariableParameterValue>
- Specified by:
clear
in interfaceSet<VariableParameterValue>
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceCollection<VariableParameterValue>
- Specified by:
equals
in interfaceSet<VariableParameterValue>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<VariableParameterValue>
- Specified by:
hashCode
in interfaceSet<VariableParameterValue>
- Overrides:
hashCode
in classObject
-
-