Class DefaultIdentifiedLocator

java.lang.Object
nz.org.riskscape.engine.DefaultIdentifiedLocator
All Implemented Interfaces:
nz.org.riskscape.engine.IdentifiedLocator
Direct Known Subclasses:
DefaultEngine, DefaultProject

public class DefaultIdentifiedLocator extends Object implements nz.org.riskscape.engine.IdentifiedLocator
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends nz.org.riskscape.engine.Identified, U extends nz.org.riskscape.engine.IdentifiedCollection<T>>
    U
    getCollection(Class<U> collectionClass)
     
    <T extends nz.org.riskscape.engine.Identified>
    nz.org.riskscape.engine.IdentifiedCollection<T>
    getCollectionByClass(Class<T> identifiedClass)
     
    Set<Class<? extends nz.org.riskscape.engine.Identified>>
     
    boolean
    hasCollectionOf(Class<? extends nz.org.riskscape.engine.Identified> identifiedClass)
     
    protected <T extends nz.org.riskscape.engine.IdentifiedCollection<?>>
    T
    put(T collection)
    Convenience method to allow extenders of this class to register collections while also assigning them to a field
    void
    registerCollection(nz.org.riskscape.engine.IdentifiedCollection<?> collection)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DefaultIdentifiedLocator

      public DefaultIdentifiedLocator()
  • Method Details

    • getCollectionByClass

      public <T extends nz.org.riskscape.engine.Identified> nz.org.riskscape.engine.IdentifiedCollection<T> getCollectionByClass(Class<T> identifiedClass)
      Specified by:
      getCollectionByClass in interface nz.org.riskscape.engine.IdentifiedLocator
    • getCollection

      public <T extends nz.org.riskscape.engine.Identified, U extends nz.org.riskscape.engine.IdentifiedCollection<T>> U getCollection(Class<U> collectionClass)
      Specified by:
      getCollection in interface nz.org.riskscape.engine.IdentifiedLocator
    • registerCollection

      public void registerCollection(nz.org.riskscape.engine.IdentifiedCollection<?> collection)
    • hasCollectionOf

      public boolean hasCollectionOf(Class<? extends nz.org.riskscape.engine.Identified> identifiedClass)
      Specified by:
      hasCollectionOf in interface nz.org.riskscape.engine.IdentifiedLocator
    • getCollectionClasses

      public Set<Class<? extends nz.org.riskscape.engine.Identified>> getCollectionClasses()
      Specified by:
      getCollectionClasses in interface nz.org.riskscape.engine.IdentifiedLocator
    • put

      protected <T extends nz.org.riskscape.engine.IdentifiedCollection<?>> T put(T collection)

      Convenience method to allow extenders of this class to register collections while also assigning them to a field

    • toString

      public String toString()
      Overrides:
      toString in class Object