pl.edu.agh.cast.data.model
Interface IReferenceList<T extends Identifiable>

Type Parameters:
T - type of referred Identifiable instances
All Superinterfaces:
Collection<T>, IReplicable, Iterable<T>, List<T>, Serializable

public interface IReferenceList<T extends Identifiable>
extends List<T>, Serializable, IReplicable

Interface of list of references to Identifiable objects.

Author:
AGH CAST Team

Method Summary
 IReferenceListIterator<? extends T> getIterator()
          Returns the IReferenceListIterator over instances referred by the reference list.
 List<T> getReferences()
          Returns the List over instances referred by the reference list.
 Type getType()
          The common type of elements in the list.
 boolean isResolved()
          Checks if reference list has already been resolved.
 void setReferences(Iterable<? extends T> references)
          Sets the instance referred by the reference.
 void setReferences(List<? extends T> references)
          Sets the instance referred by the reference.
 int size()
          Returns the number of references in the list.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 
Methods inherited from interface pl.edu.agh.cast.common.IReplicable
replicate, replicateTo
 

Method Detail

getReferences

List<T> getReferences()
Returns the List over instances referred by the reference list.

Returns:
List over referred instances (implement Identifiable)

getIterator

IReferenceListIterator<? extends T> getIterator()
Returns the IReferenceListIterator over instances referred by the reference list.

Returns:
IReferenceListIterator over referred instances (implement Identifiable)

setReferences

void setReferences(List<? extends T> references)
Sets the instance referred by the reference.

Parameters:
references - List over referred instances (implement Identifiable)

setReferences

void setReferences(Iterable<? extends T> references)
Sets the instance referred by the reference.

Parameters:
references - Iterable over referred instances (implement Identifiable)

getType

Type getType()
The common type of elements in the list.

Returns:
The type of elements.

isResolved

boolean isResolved()
Checks if reference list has already been resolved.

Returns:
true if reference list has already been resolved

size

int size()
Returns the number of references in the list.

Specified by:
size in interface Collection<T extends Identifiable>
Specified by:
size in interface List<T extends Identifiable>
Returns:
the number of references in the list


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.