Interface TierSPI<T>

All Superinterfaces:
TierDescriptionSPI
All Known Implementing Classes:
TierImpl

public interface TierSPI<T> extends TierDescriptionSPI
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Attempts to add a new group to the end of this tier and increments the number of groups.
    void
    addGroup(int idx)
    Attempts to add a new group to the end of this tier and increments the number of groups.
    void
    addGroup(int idx, T val)
    Adds a new group at the specified index
    void
    addGroup(T val)
    Adds a new group to the end of this tier and increments the number of groups.
    getGroup(int idx)
    Get value at given group
    boolean
    Is the tier grouped, if tier is not grouped, Tier.numberOfGroups() will always return 1.
    int
    Get the number of groups in the tier
    void
    Removes all group data from this tier and sets the number of groups to 0
    removeGroup(int idx)
    Remove the specified group
    void
    setGroup(int idx, T val)
    Set the value of the specified group idx.

    Methods inherited from interface ca.phon.session.spi.TierDescriptionSPI

    getDeclaredType, getName
  • Method Details

    • isGrouped

      boolean isGrouped()
      Description copied from interface: TierDescriptionSPI
      Is the tier grouped, if tier is not grouped, Tier.numberOfGroups() will always return 1.
      Specified by:
      isGrouped in interface TierDescriptionSPI
      Returns:
      true if the tier is grouped, false otherwise
    • numberOfGroups

      int numberOfGroups()
      Get the number of groups in the tier
      Returns:
      number of groups
    • getGroup

      T getGroup(int idx)
      Get value at given group
      Parameters:
      idx - group indes
      Returns:
      value for the given group
      Throws:
      ArrayIndexOutOfBoundsException
    • setGroup

      void setGroup(int idx, T val)
      Set the value of the specified group idx. idx must be between 0 and numberOfGroups()
      Parameters:
      idx -
      val -
      Throws:
      ArrayIndexOutOfBoundsException - if idx is out of bounds
      NullPointerException - if val is null
    • addGroup

      void addGroup()
      Attempts to add a new group to the end of this tier and increments the number of groups.
    • addGroup

      void addGroup(int idx)
      Attempts to add a new group to the end of this tier and increments the number of groups.
      Parameters:
      idx -
    • addGroup

      void addGroup(T val)
      Adds a new group to the end of this tier and increments the number of groups.
      Parameters:
      val -
    • addGroup

      void addGroup(int idx, T val)
      Adds a new group at the specified index
      Parameters:
      idx -
      val -
      Throws:
      ArrayIndexOutOfBoundsException - if idx is out of bounds
      NullPointerException - if val is null
    • removeGroup

      T removeGroup(int idx)
      Remove the specified group
      Parameters:
      idx -
      Throws:
      ArrayIndexOutOfBoundsException
    • removeAll

      void removeAll()
      Removes all group data from this tier and sets the number of groups to 0