Class CategoryOrderAction<T extends Channel>

    • Constructor Detail

      • CategoryOrderAction

        public CategoryOrderAction​(Category category,
                                   ChannelType type)
        Creates a new CategoryOrderAction for the specified Category
        Parameters:
        category - The target Category which the new CategoryOrderAction will order channels from.
        type - The ChannelType that matches the returning value of Channel#getType() for the generic Channel type T.
        Throws:
        java.lang.IllegalArgumentException - If the ChannelType is not one that can be retrieved from a Category. Currently the only two allowed are ChannelType.TEXT and ChannelType.VOICE.
    • Method Detail

      • getCategory

        @Nonnull
        public Category getCategory()
        Gets the Category controlled by this CategoryOrderAction.
        Returns:
        The Category of this CategoryOrderAction.