Liking cljdoc? Tell your friends :D
Clojure only.

hara.class.enum


enum-valuesclj

(enum-values type)

returns all values of an enum type

(->> (enum-values ElementType) (map str)) => (contains ["TYPE" "FIELD" "METHOD" "PARAMETER" "CONSTRUCTOR"] :in-any-order :gaps-ok)

returns all values of an enum type

(->> (enum-values ElementType)
     (map str))
=> (contains ["TYPE" "FIELD" "METHOD" "PARAMETER" "CONSTRUCTOR"]
             :in-any-order :gaps-ok)
raw docstring

enum?clj

(enum? type)

check to see if class is an enum type

(enum? java.lang.annotation.ElementType) => true

(enum? String) => false

check to see if class is an enum type

(enum? java.lang.annotation.ElementType) => true

(enum? String) => false
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close