@@ -0,0 +1,445 @@
+package org.ccci.gto.android.common.util;%0A%0Aimport android.support.annotation.Nullable;%0A%0Apublic class NumberUtils %7B%0A    @Nullable%0A    public static Integer toInteger(@Nullable final String raw, @Nullable final Integer defaultValue) %7B%0A        if (raw != null) %7B%0A            try %7B%0A                return Integer.valueOf(raw);%0A            %7D catch (final NumberFormatException ignored) %7B%0A            %7D%0A        %7D%0A%0A        return defaultValue;%0A    %7D%0A%7D%0A

make a generic toInteger(String) function that parses a string to an integer or returns a default value