protected static IValueHolderFactory createValueHolderFactory ( StatValueTypes aType ) { switch ( aType ) { case LONG : return longValueHolderFactory ; case INT : return intValueHolderFactory ; case STRING : return stringValueHolderFactory ; case COUNTER : return counterValueHolderFactory ; case DOUBLE : return doubleValueHolderFactory ; case DIFFLONG : return diffLongValueHolderFactory ; default : throw new AssertionError ( "Unsupported type: " + aType ) ; } }
This method creates the responsible ValueHolderFactory from the given internal type representation .