- <init>
Private default constructor, so that object is uninitializable publicly.
- getIndividualValue
The user's space allocation applies only to their individual account. This
instance must be tagged a
- getTeamValue
The user shares space with other members of their team. This instance must be
tagged as Tag#TEAM.
- individual
Returns an instance of SpaceAllocation that has its tag set to Tag#INDIVIDUAL.
The user's space all
- isIndividual
Returns true if this instance has the tag Tag#INDIVIDUAL, false otherwise.
- isTeam
Returns true if this instance has the tag Tag#TEAM, false otherwise.
- tag
Returns the tag for this instance. This class is a tagged union. Tagged unions
instances are always
- team
Returns an instance of SpaceAllocation that has its tag set to Tag#TEAM. The
user shares space with
- withTagAndIndividual
Space is allocated differently based on the type of account.
- withTagAndTeam
Space is allocated differently based on the type of account.