Package io.mateu.util
Class Helper
java.lang.Object
io.mateu.mdd.shared.SlimHelper
io.mateu.util.Helper
Created by miguel on 13/9/16.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic longstatic Stringstatic booleanstatic voidescribirFichero(String fn, byte[] bytes) static voidescribirFichero(String fn, String txt) static Stringstatic Stringstatic StringformatEuros(double value) static <T> Tstatic <T> Tstatic Objectstatic Objectstatic <T> Tstatic <T> List<T>static Stringstatic Stringstatic booleanintersects(LocalDate start, LocalDate end, LocalDate checkIn, LocalDate checkOut) static byte[]static Stringstatic StringleerFichero(InputStream input, String codificacion) static StringleerFichero(Class c, String p) static StringleerFichero(String fn) static StringleerFichero(String fn, String encoding) static StringleerInputStream(InputStream is, String encoding) static voidstatic intmax(int... values) static Stringstatic longparseQueryString(String query) static doubleroundEuros(double value) static doubleroundOffEuros(double v) static StringrunCommand(String command) static LocalDatetoDate(int n) static doublestatic Stringstatic intstatic intstatic int[]toIntArray(String s) static Stringstatic LocalDatetoLocalDate(Date date) static LocalDateTimetoLocalDateTime(Date date) static Stringstatic StringtoString(org.jdom2.Element element) static Stringstatic Stringstatic URLMethods inherited from class io.mateu.mdd.shared.SlimHelper
camelcasize, capitalize, capitalize, pluralize
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
toDate
-
toInt
-
dias
-
noches
-
intersects
-
cabe
-
fromJson
- Throws:
IOException
-
fromJson
- Throws:
IOException
-
toJson
- Throws:
IOException
-
fromYaml
- Throws:
IOException
-
fromYaml
- Throws:
IOException
-
toYaml
- Throws:
IOException
-
md5
-
whichJar
-
roundEuros
public static double roundEuros(double value) -
formatEuros
-
httpGet
- Throws:
IOException
-
httpPost
- Throws:
IOException
-
max
public static int max(int... values) -
toLocalDateTime
-
toLocalDate
-
hashmap
-
roundOffEuros
public static double roundOffEuros(double v) -
toInt
-
toIntArray
-
leerFichero
-
leerInputStream
-
leerFichero
-
leerFichero
- Throws:
IOException
-
leerFichero
-
leerFichero
-
escribirFichero
- Throws:
IOException
-
escribirFichero
- Throws:
IOException
-
leerByteArray
-
toDouble
-
parseQueryString
-
runCommand
- Throws:
IOExceptionInterruptedException
-
toHtml
-
get
-
get
-
getImpl
- Throws:
Exception
-
getImpls
- Throws:
Exception
-
getGeneralData
- Throws:
Throwable
-
main
-
toString
-
areXmlSerializableEqual
-
equals
-
eval
-
eval
-
encodeState
-
toString
-
urlize
-