Groovy – Regular Expressions
A regular expression is a pattern that is used to find substrings in text. Groovy supports regular expressions natively using the ~βregexβ expression. The text enclosed within the quotations represent…
Groovy
A regular expression is a pattern that is used to find substrings in text. Groovy supports regular expressions natively using the ~βregexβ expression. The text enclosed within the quotations represent…
Sets this Date object to represent a point in time that is time milliseconds after January 1, 1970 00:00:00 GMT. Syntax public void setTime(long time) Parameters time β the number of…
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object. Syntax public long getTime() Parameters None. Return Value The number of milliseconds since January 1, 1970,…
Tests if this date is before the specified date. Syntax public boolean before(Date when) Parameters when β a date. Return Value True if and only if the instant of time represented…
Converts this Date object to a string of the form dow mon dd hh:mm:ss zzz yyyy Syntax public String toString() Parameters None. Return Value A string representation of this date.…
Compares two Dates for ordering. Syntax public int compareTo(Date anotherDate) Parameters anotherDate β the Date to be compared. Return Value β The value 0 if the argument Date is equal to this Date;…
Compares two dates for equality. The result is true if and only if the argument is not null and is a Date object that represents the same point in time,…
Tests if this date is after the specified date. Syntax public boolean after(Date when) Parameters When β The date to compare against. Return Value β True if and only if the…
The class Date represents a specific instant in time, with millisecond precision. The Date class has two constructors as shown below. Date() Syntax public Date() Parameters β None. Return Value Allocates…
Returns a collection view of the values contained in this Map. Syntax Collection values() Parameters None. Return Value Collection of values. Example Following is an example of the usage of…