Make Tier an Enumeration
Introduce some type safety by using a feature designed exactly for the purpose of enumerating a finite set of possible values. Right. Why wasn't this done from the start, I wonder.
-
Make Tier
anEnumeration
-
Add an ExtendedTier
class for RAM tiers (which have 0.5 granularity) -
Rewrite everything in terms of these two types -
Rename MultiTiered
so that its name actually tells anything about its purpose -
Audit all the entities to make sure tiered entities extend Tiered
and single-class-many-tier classes extendMultiTiered
-
Check that persistence isn't broken as a result -
Ensure device info didn't change
Edited by Fingercomp