Package ca.phon.session.spi
Interface TierSPI<T>
- All Superinterfaces:
TierDescriptionSPI
- All Known Implementing Classes:
TierImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroup()
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
Adds a new group at the specified indexvoid
Adds a new group to the end of this tier and increments the number of groups.getGroup
(int idx) Get value at given groupboolean
Is the tier grouped, if tier is not grouped,Tier.numberOfGroups()
will always return 1.int
Get the number of groups in the tiervoid
Removes all group data from this tier and sets the number of groups to 0removeGroup
(int idx) Remove the specified groupvoid
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 interfaceTierDescriptionSPI
- 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
Get value at given group- Parameters:
idx
- group indes- Returns:
- value for the given group
- Throws:
ArrayIndexOutOfBoundsException
-
setGroup
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 boundsNullPointerException
- if val isnull
-
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
Adds a new group to the end of this tier and increments the number of groups.- Parameters:
val
-
-
addGroup
Adds a new group at the specified index- Parameters:
idx
-val
-- Throws:
ArrayIndexOutOfBoundsException
- if idx is out of boundsNullPointerException
- if val isnull
-
removeGroup
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
-