Class JoinTableCollectionFromTargetCollection<J,T>
- java.lang.Object
-
- net.lecousin.reactive.data.relational.model.JoinTableCollectionFromTargetCollection<J,T>
-
- All Implemented Interfaces:
Iterable<J>
,Collection<J>
public class JoinTableCollectionFromTargetCollection<J,T> extends Object implements Collection<J>
Utility class for join tables.- Author:
- Guillaume Le Cousin
-
-
Constructor Summary
Constructors Constructor Description JoinTableCollectionFromTargetCollection(Object sourceInstance, Collection<J> originalCollection, Set<T> targetCollection, String joinClassName, int sourceAttributeLinkNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(J e)
boolean
addAll(Collection<? extends J> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
boolean
isEmpty()
Iterator<J>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
int
size()
Object[]
toArray()
<R> R[]
toArray(R[] a)
-
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
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceCollection<J>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<J>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<J>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<J>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<J>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<J>
-
toArray
public <R> R[] toArray(R[] a)
- Specified by:
toArray
in interfaceCollection<J>
-
add
public boolean add(J e)
- Specified by:
add
in interfaceCollection<J>
-
addAll
public boolean addAll(Collection<? extends J> c)
- Specified by:
addAll
in interfaceCollection<J>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<J>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<J>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<J>
-
-