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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()Returns thisTuple's value map.booleanstatic TuplefromCalendar(Calendar cal) Returns a newTuplefromcal.static TupleCreates a newTuplefrommap.Returns the value forname.inthashCode()toDate()Returns aDateinstance using the fields of this tuple.
-
Constructor Details
-
Method Details
-
fromMap
Creates a newTuplefrommap. -
fromCalendar
Returns a newTuplefromcal. 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 aDateinstance 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.- Returns:
- a
Dateinstance using the fields of this tuple - See Also:
-