How do you import two java classes of the same name?
(ns calibration.frequency-analysis
(:require [clojure.string :as str])
(:import [org.apache.commons.math3.transform DftNormalization FastFourierTransformer TransformType]
[org.apache.commons.math3.complex Complex])
(:import [com.github.psambit9791.jdsp.filter Butterworth]
[uk.me.berndporr.iirj Butterworth]))I'm not sure that you can import two classes with the same short name, but you can always import a fully qualified name
(ns calibration.frequency-analysis
(:require [clojure.string :as str])
(:import [org.apache.commons.math3.transform DftNormalization FastFourierTransformer TransformType]
[org.apache.commons.math3.complex Complex])
(:import com.github.psambit9791.jdsp.filter.Butterworth
uk.me.berndporr.iirj.Butterworth))You don’t - fully qualify one of them
there is no reason to :import a fully qualified name like that, you can just use the fully qualified name anywhere
Got it, now I see, thank you all!