switch (family) { case QuantumFactory.LINEAR: case QuantumFactory.LOGARITHMIC: case QuantumFactory.EXPONENTIAL: case QuantumFactory.POLYNOMIAL: return; default: throw new IllegalArgumentException("Unsupported family type"); }
if (!value.equals(QuantumFactory.LINEAR) && !value.equals(QuantumFactory.LOGARITHMIC) && !value.equals(QuantumFactory.EXPONENTIAL) && !value.equals(QuantumFactory.POLYNOMIAL)) throw new IllegalArgumentException( "Unsupported family type: '" + value + "'");
    private static void verifyFamily(int family)    {        switch (family) {            case QuantumFactory.LINEAR:            case QuantumFactory.LOGARITHMIC:            case QuantumFactory.EXPONENTIAL:            case QuantumFactory.POLYNOMIAL:                return;            default:                throw new IllegalArgumentException("Unsupported family type");        }    }