public PreferenceBuilder<PreferenceClass> prefType(Class<PreferenceClass> prefType){
  if (!VALID_TYPES.contains(prefType)) {
    throw new IllegalArgumentException("The specified type: " + prefType + " is not supported in preferences");
  }
  this.prefType=prefType;
  return this;
}

public PreferenceBuilder < PreferenceClass > prefType ( Class < PreferenceClass > prefType ) { if ( ! VALID_TYPES . contains ( prefType ) ) { throw new IllegalArgumentException ( "The specified type: " + prefType + " is not supported in preferences" ) ; } this . prefType = prefType ; return this ; }
the type of preference to retrieve
