|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.data.model.util.ReferenceUtil.DefaultReferenceProvider
protected class ReferenceUtil.DefaultReferenceProvider
Default implementation of IReferenceProvider
which provides Reference
instances.
Constructor Summary | |
---|---|
protected |
ReferenceUtil.DefaultReferenceProvider()
|
Method Summary | ||
---|---|---|
|
createEmptyReferenceList()
Creates an empty reference list of unknown type. |
|
|
createReference(T instance)
Creates a reference to the given object. |
|
|
createReferenceList(Iterable<T> instances,
Type type)
Creates a reference list with a list of objects of the given type. |
|
|
createReferenceList(T instance)
Creates a reference list with one object. |
|
|
createReferenceList(Type type)
Creates an empty reference list of the given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ReferenceUtil.DefaultReferenceProvider()
Method Detail |
---|
public <T extends Identifiable> IReference<T> createReference(T instance)
createReference
in interface IReferenceProvider
T
- the type of referenced objectinstance
- the object to be referenced
IReference
referencing the given objectcreateReference(pl.edu.agh.cast.data.model.Identifiable)
public <T extends Identifiable> IReferenceList<T> createReferenceList(T instance)
createReferenceList
in interface IReferenceProvider
T
- the type of referenced objectsinstance
- the object to be referenced
IReferenceList
referencing the given object#createReferenceList(pl.edu.agh.cast.data.model.Identifiable)
public <T extends Identifiable> IReferenceList<T> createReferenceList(Iterable<T> instances, Type type)
createReferenceList
in interface IReferenceProvider
T
- the type of referenced objectsinstances
- a collection of objects to be referencedtype
- the type of referenced objects
IReferenceList
referencing the given objectspl.edu.agh.cast.data.model.util.IReferenceProvider#createReferenceList(java.lang.Iterable)
public <T extends Identifiable> IReferenceList<T> createReferenceList(Type type)
createReferenceList
in interface IReferenceProvider
T
- the type of referenced objectstype
- the type of referenced objects
IReferenceList
which is emptyIReferenceProvider.createReferenceList(pl.edu.agh.cast.data.model.Type)
public <T extends Identifiable> IReferenceList<T> createEmptyReferenceList()
createEmptyReferenceList
in interface IReferenceProvider
T
- the type of referenced objects
IReferenceList
which is emptyIReferenceProvider.createEmptyReferenceList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |