Interface ItemGroupModifier<G extends ItemGroup<I>,​I extends TopLevelItem>

    • Method Detail

      • getTargetClass

        Class<G> getTargetClass()
        Deprecated.
        The type of group that this modifier works on.
        Returns:
        the type of group that this modifier works on.
      • canAdd

        <II extends I> boolean canAdd​(G target,
                                      II item)
        Deprecated.
        Returns true if the target can take the item.
        Type Parameters:
        II - the type of the item.
        Parameters:
        target - the target.
        item - the item.
        Returns:
        true if the target can take the item.
      • add

        <II extends I> II add​(G target,
                              II item)
                       throws IOException
        Deprecated.
        Adds an item to the target.
        Type Parameters:
        II - the type of the item.
        Parameters:
        target - the target.
        item - the item
        Returns:
        the item instance within the target, may be the same instance as the passed in parameter or may be a new instance, depending on the target container.
        Throws:
        IOException - if the addition could not be completed.
      • remove

        void remove​(G target,
                    I item)
             throws IOException
        Deprecated.
        Removes an item from the target.
        Parameters:
        target - the target.
        item - the item
        Throws:
        IOException - if the removal could not be completed.