Class Yuga
java.lang.Object
com.twelfthmile.yuga.Yuga
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckTypes(String type, String word) static StringgetYugaResponseOutput(String str, Map<String, String> config, boolean isTime) static voidinit()static ResponseReturns Response containing data-type, captured string and index upto which data was readstatic ResponseReturns Response containing data-type, captured string and index upto which data was readReturns Pair of index upto which date was read and the date objectReturns Pair of index upto which date was read and the date object
-
Constructor Details
-
Yuga
public Yuga()
-
-
Method Details
-
init
public static void init() -
parseDate
-
parseDate
Returns Pair of index upto which date was read and the date object- Parameters:
str- date stringconfig- pass the message date string for defaulting- Returns:
- A last index for date string, b date object returns null if string is not of valid date format
-
parse
-
parse
-
checkTypes
-
getYugaResponseOutput
-