Back to project page RoboBinding-gallery.
The source code is released under:
Apache License
If you think the Android project RoboBinding-gallery listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.robobinding.gallery.model; /*from w w w . ja v a 2 s .c o m*/ import android.util.SparseBooleanArray; /** * * @since 1.0 * @version $Revision: 1.0 $ * @author Cheng Wei */ public class Strings { public static String toString(SparseBooleanArray array) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < array.size(); i++) { sb.append(array.keyAt(i)); sb.append(":"); sb.append(array.valueAt(i)); sb.append(", "); } if (sb.toString().endsWith(", ")) { sb.delete(sb.length() - 2, sb.length()); } return sb.toString(); } private Strings() { } }