An enum can in java can only have the typesvalues you define in it or null. The check
can never fail, as long as you dont add other valuescould be simplified to the enum. Decide yourself, if this is needed.
if (hungarianOperationMode == null)
throw new IllegalArgumentException("Unexpected hungarian operation mode.");
Edit 2:
In order to make sure, that the passed enum parameter is not null, you should implement a rule and add it to your validation List<Rule>
An enum can in java only have the types you define in it. The check
can never fail, as long as you dont add other values to the enum. Decide yourself, if this is needed.
Edit 2:
In order to make sure, that the passed enum parameter is not null, you should implement a rule and add it to your validation List<Rule>
An enum in java can only have the values you define in it or null. The check
could be simplified to
if (hungarianOperationMode == null)
throw new IllegalArgumentException("Unexpected hungarian operation mode.");
Edit 2:
In order to make sure, that the passed enum parameter is not null, you should implement a rule and add it to your validation List<Rule>
Edit 2:
In order to make sure, that the passed enum parameter is not null, you should implement a rule and add it to your validation List<Rule>