Interface MultiInstrument

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default boolean contains​(java.lang.Class<? extends Instrument> type)
      Checks whether this instrument contains any sub-instruments that can be considered to be of the specified type
      default boolean contains​(kotlin.reflect.KClass<? extends Instrument> type)  
      <I extends Instrument>
      java.util.List<I>
      get​(java.lang.Class<I> type)
      Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.
      default <I extends Instrument>
      java.util.List<I>
      get​(kotlin.reflect.KClass<I> type)
      Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.
      default <I extends Instrument>
      I
      getSubInstrument​(java.lang.Class<I> type, int n)  
      default java.util.List<? extends Instrument> getSubInstruments()
      Returns a list of all sub-instruments contained in this instrument.
      default <I extends Instrument>
      java.util.List<I>
      getSubInstruments​(java.lang.Class<I> type)  
      java.util.List<java.lang.Class<? extends Instrument>> getSubInstrumentTypes()
      Returns a list of all the different classes of sub-instruments that this instrument contains.
    • Method Detail

      • getSubInstrumentTypes

        java.util.List<java.lang.Class<? extends Instrument>> getSubInstrumentTypes()
        Returns a list of all the different classes of sub-instruments that this instrument contains.
        Returns:
        List of sub-instrument classes
      • contains

        default boolean contains​(java.lang.Class<? extends Instrument> type)
        Checks whether this instrument contains any sub-instruments that can be considered to be of the specified type
        Parameters:
        type - Type to check
        Returns:
        Does it contain any?
      • contains

        default boolean contains​(kotlin.reflect.KClass<? extends Instrument> type)
      • get

        <I extends Instrument> java.util.List<I> get​(java.lang.Class<I> type)
        Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.
        Type Parameters:
        I - Instrument class
        Parameters:
        type - The class object of sub-instrument to return
        Returns:
        List of sub-instruments matching the given class
      • get

        default <I extends Instrument> java.util.List<I> get​(kotlin.reflect.KClass<I> type)
        Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.
        Type Parameters:
        I - Instrument class
        Parameters:
        type - The (Kotlin) class object of sub-instrument to return
        Returns:
        List of sub-instruments matching the given class
      • getSubInstruments

        default <I extends Instrument> java.util.List<I> getSubInstruments​(java.lang.Class<I> type)
      • getSubInstrument

        default <I extends Instrument> I getSubInstrument​(java.lang.Class<I> type,
                                                          int n)
      • getSubInstruments

        default java.util.List<? extends Instrument> getSubInstruments()
        Returns a list of all sub-instruments contained in this instrument.
        Returns:
        List of all sub-instruments