private static void verify ( final String name , final int type ) { if ( ( type < HARD ) || ( type > WEAK ) ) { throw new IllegalArgumentException ( name + " must be HARD, SOFT, WEAK." ) ; } }
used by constructor