Package collectionManagers
Interface CollectionManager<T extends AbstractCollection<E>,E> 
- All Known Implementing Classes:
- CityManager
public interface CollectionManager<T extends AbstractCollection<E>,E> 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddElementToCollection(E value) Provides method for fast adding element in collection.voidProvides method for fast clear element in collection.Provides method for get collection.Provides method for fast getting first element.voidsetCollection(T value) Provides method for set collection.
- 
Method Details- 
getCollectionT getCollection()Provides method for get collection.- Returns:
- Actual collection reference
 
- 
setCollectionProvides method for set collection.- Parameters:
- value- Collection
 
- 
getFirstOrNewE getFirstOrNew()Provides method for fast getting first element.- Returns:
- First element. If collection was empty, creates new Element and returns it.
 
- 
addElementToCollectionProvides method for fast adding element in collection.- Parameters:
- value- Element to add
 
- 
clearCollectionvoid clearCollection()Provides method for fast clear element in collection.
 
-