public static TypeAwareStatValue createStatValue ( StatValueTypes aType , String aName , Interval [ ] aIntervals ) { IValueHolderFactory valueHolderFactory = StatValueTypeUtility . createValueHolderFactory ( aType ) ; TypeAwareStatValue value = new TypeAwareStatValueImpl ( aName , aType , valueHolderFactory ) ; // now we have to add the Intervals to the new value.... for ( int i = 0 ; i < aIntervals . length ; i ++ ) { value . addInterval ( aIntervals [ i ] ) ; } return value ; }
This method creates a StatValue instance .