Class AbstractGenericDepot<T extends IPNDItem>

java.lang.Object
com.dna.jopt.member.unit.pnd.depot.AbstractGenericDepot<T>
Direct Known Subclasses:
AbstractNodeDepot, AbstractResourceDepot

public abstract class AbstractGenericDepot<T extends IPNDItem> extends Object
  • Constructor Details

    • AbstractGenericDepot

      public AbstractGenericDepot(String depotId)
  • Method Details

    • getDepotId

      public String getDepotId()
    • setItems

      public void setItems(List<T> items)
    • getItems

      public List<T> getItems()
    • add

      public boolean add(T item)
    • mergeItem

      public abstract Optional<T> mergeItem(T itemOne, T itemTwo)
    • postAdd

      public abstract void postAdd(T item)
    • add

      public void add(List<T> items)
    • remove

      public boolean remove(T item)
    • replace

      public boolean replace(T orgItem, T newItem)
    • get

      public Optional<T> get(String key)