Class AbstractItem.IdeConnection<C extends ConnectionModel>

    • Constructor Summary

      Constructors 
      Constructor Description
      IdeConnection​(java.lang.Class<C> connectionClass)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AbstractItem.IdeConnection<C> connectMany​(java.util.function.Function<M,​java.util.List<C>> sourceToMany, java.util.function.Function<C,​M> connToSource, E... sourceChangeEvents)
      Connect to many targets.
      AbstractItem.IdeConnection<C> connectOne​(java.util.function.Function<M,​C> sourceToOne, java.util.function.Function<C,​M> connToSource, E... sourceChangeEvents)
      Connect to one target.
      <T extends Model,​TE extends java.lang.Enum<TE>>
      AbstractItem.IdeConnectionTarget<C,​T,​TE>
      to​(java.lang.Class<T> targetClass)
      Connects the target.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdeConnection

        public IdeConnection​(java.lang.Class<C> connectionClass)
        Instantiate.
        Parameters:
        connectionClass - Class of the ConnectionModel.
    • Method Detail

      • connectMany

        @SafeVarargs
        public final AbstractItem.IdeConnection<C> connectMany​(java.util.function.Function<M,​java.util.List<C>> sourceToMany,
                                                               java.util.function.Function<C,​M> connToSource,
                                                               E... sourceChangeEvents)
        Connect to many targets.
        Parameters:
        sourceToMany - Obtains the multiple ConnectionModel instances from the source.
        connToSource - Obtains the source from a particular ConnectionModel.
        sourceChangeEvents - Source change events.
        Returns:
        this.
      • connectOne

        @SafeVarargs
        public final AbstractItem.IdeConnection<C> connectOne​(java.util.function.Function<M,​C> sourceToOne,
                                                              java.util.function.Function<C,​M> connToSource,
                                                              E... sourceChangeEvents)
        Connect to one target.
        Parameters:
        sourceToOne - Obtains the single ConnectionModel from the source.
        connToSource - Obtains the source from the ConnectionModel.
        sourceChangeEvents - Source change events.
        Returns:
        this.