Class CountUnit


  • public class CountUnit
    extends Unit
    CountUnit is a class that contains all the count units that are supported by the app
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.HashMap<java.lang.String,​java.lang.Double> CONVERSION_FACTORS
      The conversion factors for the count units
      static java.lang.String smallestMetricUnit
      The smallest unit for count
      static java.util.HashMap<java.lang.String,​java.util.Set<java.lang.String>> UNIT_SYSTEMS
      The unit systems that the count units are in
    • Constructor Summary

      Constructors 
      Constructor Description
      CountUnit​(java.lang.String unit)
      Constructor for the CountUnit class
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • smallestMetricUnit

        public static final java.lang.String smallestMetricUnit
        The smallest unit for count
        See Also:
        Constant Field Values
      • CONVERSION_FACTORS

        public static final java.util.HashMap<java.lang.String,​java.lang.Double> CONVERSION_FACTORS
        The conversion factors for the count units
      • UNIT_SYSTEMS

        public static final java.util.HashMap<java.lang.String,​java.util.Set<java.lang.String>> UNIT_SYSTEMS
        The unit systems that the count units are in
    • Constructor Detail

      • CountUnit

        public CountUnit​(java.lang.String unit)
        Constructor for the CountUnit class
        Parameters:
        unit - the unit of count