Package org.eclipse.m2m.atl.emftvm.util
Class Tuple
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.Tuple
Reflective, immutable implementation of OCL Tuples.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
Returns thisTuple
's value map.boolean
static Tuple
fromCalendar
(Calendar cal) Returns a newTuple
fromcal
.static Tuple
Creates a newTuple
frommap
.Returns the value forname
.int
hashCode()
toDate()
Returns aDate
instance using the fields of this tuple.
-
Constructor Details
-
Method Details
-
fromMap
Creates a newTuple
frommap
. -
fromCalendar
Returns a newTuple
fromcal
. Supported fields: timezone, year, month, day_of_month, day_of_week, day_of_week_in_month, day_of_year, era, hour, hour_of_day, minute, second, millisecond, am_pm, week_of_month, week_of_year. -
get
Returns the value forname
.- Parameters:
name
- the element name- Returns:
- the value for
name
-
equals
-
hashCode
public int hashCode() -
asMap
Returns thisTuple
's value map.- Returns:
- this
Tuple
's value map
-
toDate
Returns aDate
instance using the fields of this tuple. Supported fields: timezone, locale, year, month, day_of_month, day_of_week, day_of_week_in_month, day_of_year, era, hour, hour_of_day, minute, second, millisecond, am_pm, week_of_month, week_of_year.
-