store/[org.clojure/clojure "1.8.0"] clj::clojure.java.javadoc/javadoc

Official Documentation

Add notes
Arities
==================================================
   [class-or-object]

Docstring
==================================================
  Opens a browser window displaying the javadoc for the argument.
  Tries *local-javadocs* first, then *remote-javadocs*.

Source

(defn javadoc
  "Opens a browser window displaying the javadoc for the argument.
  Tries *local-javadocs* first, then *remote-javadocs*."
  {:added "1.2"}
  [class-or-object]
  (let [^Class c (if (instance? Class class-or-object) 
                    class-or-object 
                    (class class-or-object))]
    (if-let [url (javadoc-url (.getName c))]
      (browse-url url)
      (println "Could not find Javadoc for" c))))

Example 1

Edit
(require '[clojure.repl :refer [javadoc]])

(javadoc 1)
;; => "http://java.sun.com/javase/7/docs/api/java/lang/Long.html"

(javadoc "abc")
;; => "http://java.sun.com/javase/7/docs/api/java/lang/String.html"

Example 2

Edit
(require '[clojure.java.javadoc :refer [javadoc]])

(javadoc org.joda.time.DateTime)
;; => "http://www.google.com/search?btnI=I%27m%20Feeling%20Lucky&q=allinurl:org/joda/time/DateTime.html"

Example 3

Edit
(require '[clojure.java.javadoc :refer [javadoc]])

(javadoc String)
;; => "http://java.sun.com/javase/6/docs/api/java/lang/String.html"

(javadoc (java.util.Date.))
;; => "http://java.sun.com/javase/6/docs/api/java/util/Date.html"

Uses on crossclj