Class AbstractController

    • Constructor Detail

      • AbstractController

        protected AbstractController​(li.pitschmann.knx.core.communication.KnxClient knxClient)
    • Method Detail

      • getKnxClient

        protected final li.pitschmann.knx.core.communication.KnxClient getKnxClient()
      • limitAndGetAsList

        protected final <T> List<T> limitAndGetAsList​(io.javalin.http.Context ctx,
                                                      Collection<T> list)
        Returns a range of T elements from list. May be limited using start and limit request parameters.
        Type Parameters:
        T - the type of list value to be limited
        Parameters:
        ctx - the context from Javalin
        list - the list that may be limited
        Returns:
        a new list of elements from Collection