cache for hara.core.base.enum/enum-map
cache for hara.core.base.enum/enum-map
(create-enum s type)creates an enum value from a string
(create-enum "TYPE" ElementType) => ElementType/TYPE
creates an enum value from a string (create-enum "TYPE" ElementType) => ElementType/TYPE
(enum-map type)cached map of enum values
(enum-map ElementType)
cached map of enum values (enum-map ElementType)
(enum-map-form type)creates the form for the enum
(enum-map-form ElementType)
creates the form for the enum (enum-map-form ElementType)
(enum-map-raw type)helper function for hara.core.base.enum/enum-map
helper function for hara.core.base.enum/enum-map
(enum-map> type)a macro for getting elements of the enum
(enum-map> ElementType)
a macro for getting elements of the enum (enum-map> ElementType)
(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)(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
(to-enum s type)gets an enum value given a symbol
(to-enum "TYPE" ElementType) => ElementType/TYPE
(to-enum :field ElementType) => ElementType/FIELD
gets an enum value given a symbol (to-enum "TYPE" ElementType) => ElementType/TYPE (to-enum :field ElementType) => ElementType/FIELD
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |