public static long getTimeScaleValue ( int scale , int value ) { TimeScaleData data = getTimeScaleData ( scale ) ; switch ( value ) { case UNITS_VALUE : return data . units ; case EPOCH_OFFSET_VALUE : return data . epochOffset ; case FROM_MIN_VALUE : return data . fromMin ; case FROM_MAX_VALUE : return data . fromMax ; case TO_MIN_VALUE : return data . toMin ; case TO_MAX_VALUE : return data . toMax ; case EPOCH_OFFSET_PLUS_1_VALUE : return data . epochOffsetP1 ; case EPOCH_OFFSET_MINUS_1_VALUE : return data . epochOffsetM1 ; case UNITS_ROUND_VALUE : return data . unitsRound ; case MIN_ROUND_VALUE : return data . minRound ; case MAX_ROUND_VALUE : return data . maxRound ; default : throw new IllegalArgumentException ( "value out of range: " + value ) ; } }
Get a value associated with a particular time scale .