Package collectionManagers
Interface CollectionManager<T extends AbstractCollection<E>,E>
- All Known Implementing Classes:
CityManager
public interface CollectionManager<T extends AbstractCollection<E>,E>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElementToCollection
(E value) Provides method for fast adding element in collection.void
Provides method for fast clear element in collection.Provides method for get collection.Provides method for fast getting first element.void
setCollection
(T value) Provides method for set collection.
-
Method Details
-
getCollection
T getCollection()Provides method for get collection.- Returns:
- Actual collection reference
-
setCollection
Provides method for set collection.- Parameters:
value
- Collection
-
getFirstOrNew
E getFirstOrNew()Provides method for fast getting first element.- Returns:
- First element. If collection was empty, creates new Element and returns it.
-
addElementToCollection
Provides method for fast adding element in collection.- Parameters:
value
- Element to add
-
clearCollection
void clearCollection()Provides method for fast clear element in collection.
-