Back to project page ReadabilitySDK.
The source code is released under:
MIT License
If you think the Android project ReadabilitySDK 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 com.idemidov.readability.util; //from w ww. java 2 s . c o m import com.idemidov.readability.data.BookmarkOrder; public class ParseUtil { public static boolean intToBoolean(int value) { return value == 0 ? false : true; } public static BookmarkOrder stringToBookmarkOrser(String value) { if (BookmarkOrder.DATE_ADDED_DESC.getValue().equals(value)) { return BookmarkOrder.DATE_ADDED_DESC; } else if (BookmarkOrder.DATE_ADDED.getValue().equals(value)) { return BookmarkOrder.DATE_ADDED; } else if (BookmarkOrder.DATE_UPDATED.getValue().equals(value)) { return BookmarkOrder.DATE_UPDATED; } else { return BookmarkOrder.DATE_UPDATED_DESC; } } }