Skip to content

Instantly share code, notes, and snippets.

@Ilya-Gazman
Ilya-Gazman / NumberTester.java
Last active November 5, 2017 17:45
Determine if a String is an Integer in Java
/**
* Created by Ilya Gazman on 6/29/2017.
*/
public class NumberTester {
public static final String MIN_VALUE_32 = Integer.MIN_VALUE + "";
public static final String MAX_VALUE_32 = Integer.MAX_VALUE + "";
public static final String MIN_VALUE_64 = Long.MIN_VALUE + "";
public static final String MAX_VALUE_64 = Long.MAX_VALUE + "";
@Ilya-Gazman
Ilya-Gazman / HtmlBuilder.java
Last active February 19, 2018 21:06
An easy way to work with HTML in Android. Just set the textView with the build result.
public class HtmlBuilder {
public static final String COLOR = "[color]";
public enum Type{
BOLD("strong"),
ITALIC("em"),
COLOR("font color=\"#"+ HtmlBuilder.COLOR + "\""),
SMALL("small")
;
public final String stringType;