Interface CollectionManager<T extends AbstractCollection<E>,E>

All Known Implementing Classes:
CityManager

public interface CollectionManager<T extends AbstractCollection<E>,E>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    Provides method for set collection.
  • Method Details

    • getCollection

      T getCollection()
      Provides method for get collection.
      Returns:
      Actual collection reference
    • setCollection

      void setCollection(T value)
      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

      void addElementToCollection(E value)
      Provides method for fast adding element in collection.
      Parameters:
      value - Element to add
    • clearCollection

      void clearCollection()
      Provides method for fast clear element in collection.