Interface UnitService

    • Method Detail

      • getAllUnits

        java.util.Set<UnitModel> getAllUnits()
        Returns all Units.
        Returns:
        a set containing all units.
      • getAllUnitTypes

        java.util.Set<java.lang.String> getAllUnitTypes()
        Returns all unit types (e.g. 'weight', 'size' ).
        Returns:
        a set of type strings
      • getUnitsForUnitType

        java.util.Set<UnitModel> getUnitsForUnitType​(java.lang.String unitType)
        Returns all units for specific unit type
        Parameters:
        unitType - search only units for this unit type
        Returns:
        found units that match unit type