Back to project page android-appwidget-cirrus.
The source code is released under:
MIT License
If you think the Android project android-appwidget-cirrus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* Copyright 2014 Wayne D Grant (www.waynedgrant.com) Licensed under the MIT License */ /*from w w w . j a va 2 s . c om*/ package com.waynedgrant.cirrus.presentation.formatters; import java.util.Locale; public class HumidityFormatter { private Integer humidityPercentage; public HumidityFormatter(Integer humidityPercentage) { this.humidityPercentage = humidityPercentage; } public String format() { String formatted = "--%"; if (humidityPercentage != null) { formatted = String.format(Locale.US, "%1d%%", humidityPercentage); } return formatted; } }