Class PunishmentList


  • public class PunishmentList
    extends java.lang.Object
    A class for storing a list of PunishmentInterface's. This is required because of the way the API is structured There is no need for the user of this API to use this class, it is simply used to make converting a list of punishments to a list of PunishmentInterface's easier
    • Constructor Detail

      • PunishmentList

        public PunishmentList()
        Setup the list
    • Method Detail

      • size

        public java.lang.Integer size()
        Get the number of items currently in the list
        Returns:
        Returns the number of Punishments stored
      • get

        public PunishmentInterface get​(java.lang.Integer index)
        Get the punishment at any index
        Parameters:
        index - The index you wish to fetch
        Returns:
        Returns the PunishmentInterface at the index provided
      • addAll

        public void addAll​(java.util.Collection<PunishmentInterface> punishments)
        Add multiple vales at once
        Parameters:
        punishments - The collection of PunishmentInterface's you wish to add