Package org.molgenis.vibe.core.formats
Class BiologicalEntityCollection<T1 extends BiologicalEntity,T2 extends BiologicalEntity,T3 extends BiologicalEntityCombination<T1,T2>>
- java.lang.Object
-
- org.molgenis.vibe.core.formats.BiologicalEntityCollection<T1,T2,T3>
-
- Type Parameters:
T1- the firstBiologicalEntitysubclass typeT2- the secondBiologicalEntitysubclass typeT3- theBiologicalEntityCombinationcombiningBiologicalEntityCollectionandBiologicalEntityCollection
- All Implemented Interfaces:
Iterable<T3>,Collection<T3>,AllFieldsEquals
- Direct Known Subclasses:
GeneDiseaseCollection
public abstract class BiologicalEntityCollection<T1 extends BiologicalEntity,T2 extends BiologicalEntity,T3 extends BiologicalEntityCombination<T1,T2>> extends Object implements Collection<T3>, AllFieldsEquals
A collection of 0 or moreBiologicalEntityCombinationsthat have the sameBiologicalEntityCollectionandBiologicalEntityCollectionclass types.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBiologicalEntityCollection()protectedBiologicalEntityCollection(Collection<? extends T3> combinations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T3 t3)booleanaddAll(Collection<? extends T3> c)booleanallFieldsEquals(Object o)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object o)T3get(T3 t3)Set<T3>getByT1(T1 t1)Get allBiologicalEntityCollectionbelonging to a singleBiologicalEntityCollection.Set<T3>getByT2(T2 t2)Get allBiologicalEntityCollectionbelonging to a singleBiologicalEntityCollection.Set<T1>getT1()Set<T2>getT2()Set<T3>getT3()List<T3>getT3Ordered()UsesgetT3()to create an orderedListfirst ordered based onBiologicalEntityCollectionand then ordered based onBiologicalEntityCollection.inthashCode()booleanisEmpty()Iterator<T3>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<T> T[]toArray(T[] a)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
BiologicalEntityCollection
protected BiologicalEntityCollection()
-
BiologicalEntityCollection
protected BiologicalEntityCollection(Collection<? extends T3> combinations)
-
-
Method Detail
-
getT3Ordered
public List<T3> getT3Ordered()
UsesgetT3()to create an orderedListfirst ordered based onBiologicalEntityCollectionand then ordered based onBiologicalEntityCollection.- Returns:
- ordered
ListofBiologicalEntityCollection
-
getByT1
public Set<T3> getByT1(T1 t1)
Get allBiologicalEntityCollectionbelonging to a singleBiologicalEntityCollection.- Parameters:
t1-- Returns:
- all
BiologicalEntityCollectionbelonging tot1
-
getByT2
public Set<T3> getByT2(T2 t2)
Get allBiologicalEntityCollectionbelonging to a singleBiologicalEntityCollection.- Parameters:
t2-- Returns:
- all
BiologicalEntityCollectionbelonging tot2
-
size
public int size()
- Specified by:
sizein interfaceCollection<T1 extends BiologicalEntity>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T1 extends BiologicalEntity>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<T1 extends BiologicalEntity>
-
iterator
public Iterator<T3> iterator()
- Specified by:
iteratorin interfaceCollection<T1 extends BiologicalEntity>- Specified by:
iteratorin interfaceIterable<T1 extends BiologicalEntity>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<T1 extends BiologicalEntity>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<T1 extends BiologicalEntity>
-
add
public boolean add(T3 t3)
- Specified by:
addin interfaceCollection<T1 extends BiologicalEntity>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<T1 extends BiologicalEntity>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<T1 extends BiologicalEntity>
-
addAll
public boolean addAll(Collection<? extends T3> c)
- Specified by:
addAllin interfaceCollection<T1 extends BiologicalEntity>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<T1 extends BiologicalEntity>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<T1 extends BiologicalEntity>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T1 extends BiologicalEntity>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection<T1 extends BiologicalEntity>- Overrides:
equalsin classObject
-
allFieldsEquals
public boolean allFieldsEquals(Object o)
- Specified by:
allFieldsEqualsin interfaceAllFieldsEquals
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<T1 extends BiologicalEntity>- Overrides:
hashCodein classObject
-
-