Class TierImpl<T>

java.lang.Object
ca.phon.session.impl.TierImpl<T>
All Implemented Interfaces:
TierDescriptionSPI, TierSPI<T>

public class TierImpl<T> extends Object implements TierSPI<T>
  • 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.
    Get declared type of the tier
    getGroup(int idx)
    Get value at given group
    Get the name of the tier.
    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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • numberOfGroups

      public int numberOfGroups()
      Description copied from interface: TierSPI
      Get the number of groups in the tier
      Specified by:
      numberOfGroups in interface TierSPI<T>
      Returns:
      number of groups
    • getGroup

      public T getGroup(int idx)
      Description copied from interface: TierSPI
      Get value at given group
      Specified by:
      getGroup in interface TierSPI<T>
      Parameters:
      idx - group indes
      Returns:
      value for the given group
    • setGroup

      public void setGroup(int idx, T val)
      Description copied from interface: TierSPI
      Set the value of the specified group idx. idx must be between 0 and numberOfGroups()
      Specified by:
      setGroup in interface TierSPI<T>
    • addGroup

      public void addGroup()
      Description copied from interface: TierSPI
      Attempts to add a new group to the end of this tier and increments the number of groups.
      Specified by:
      addGroup in interface TierSPI<T>
    • addGroup

      public void addGroup(int idx)
      Description copied from interface: TierSPI
      Attempts to add a new group to the end of this tier and increments the number of groups.
      Specified by:
      addGroup in interface TierSPI<T>
    • addGroup

      public void addGroup(T val)
      Description copied from interface: TierSPI
      Adds a new group to the end of this tier and increments the number of groups.
      Specified by:
      addGroup in interface TierSPI<T>
    • addGroup

      public void addGroup(int idx, T val)
      Description copied from interface: TierSPI
      Adds a new group at the specified index
      Specified by:
      addGroup in interface TierSPI<T>
    • removeGroup

      public T removeGroup(int idx)
      Description copied from interface: TierSPI
      Remove the specified group
      Specified by:
      removeGroup in interface TierSPI<T>
    • removeAll

      public void removeAll()
      Description copied from interface: TierSPI
      Removes all group data from this tier and sets the number of groups to 0
      Specified by:
      removeAll in interface TierSPI<T>
    • isGrouped

      public 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
      Specified by:
      isGrouped in interface TierSPI<T>
      Returns:
      true if the tier is grouped, false otherwise
    • getName

      public String getName()
      Description copied from interface: TierDescriptionSPI
      Get the name of the tier.
      Specified by:
      getName in interface TierDescriptionSPI
      Returns:
      name of the tier
    • getDeclaredType

      public Class<T> getDeclaredType()
      Description copied from interface: TierDescriptionSPI
      Get declared type of the tier
      Specified by:
      getDeclaredType in interface TierDescriptionSPI