Liking cljdoc? Tell your friends :D

hara.object.element.impl.multi


elegible-candidatesclj

(elegible-candidates prelim aparams)

finds elegible candidates based upon argument list

(-> (query/query-class clojure.lang.PersistentVector ["create" :#]) (get-in [:lookup :method 1]) (multi/elegible-candidates [java.util.List])) ;;=> (#[create :: (java.util.List) -> clojure.lang.PersistentVector] ;; #[create :: (java.lang.Iterable) -> clojure.lang.PersistentVector])

finds elegible candidates based upon argument list

(-> (query/query-class clojure.lang.PersistentVector ["create" :#])
    (get-in [:lookup :method 1])
    (multi/elegible-candidates [java.util.List]))
;;=> (#[create :: (java.util.List) -> clojure.lang.PersistentVector]
;;    #[create :: (java.lang.Iterable) -> clojure.lang.PersistentVector])
raw docstring

find-candidateclj

(find-candidate mele aparams)

finds best element within the multi, methods then fields

(if (< 9 (:major (version/java-version))) (-> (query/query-class String ["value" :#]) (multi/find-candidate [String (type (chars "a"))]))) ;; #[value :: (java.lang.String) | byte[]] => (any hara.object.element.common.Element nil)

finds best element within the multi, methods then fields

(if (< 9 (:major (version/java-version)))
  (-> (query/query-class String ["value" :#])
      (multi/find-candidate [String (type (chars "a"))])))
;; #[value :: (java.lang.String) | byte[]]
=> (any hara.object.element.common.Element
        nil)
raw docstring

find-field-candidateclj

(find-field-candidate mele aparams)

finds best field candidate for the element

(if (< 9 (:major (version/java-version))) (-> (query/query-class String ["value" :#]) (multi/find-field-candidate [(type (chars "a"))]))) ;; #[value :: (java.lang.String) | byte[]] => (any hara.object.element.common.Element nil)

finds best field candidate for the element

(if (< 9 (:major (version/java-version)))
  (-> (query/query-class String ["value" :#])
      (multi/find-field-candidate [(type (chars "a"))])))
;; #[value :: (java.lang.String) | byte[]]
=> (any hara.object.element.common.Element
        nil)
raw docstring

find-method-candidateclj

(find-method-candidate mele aparams)

creates a map path for the element (-> (query/query-class clojure.lang.PersistentVector ["create" :#]) (multi/find-method-candidate [java.util.List])) ;; #[create :: (java.util.List) -> clojure.lang.PersistentVector] => hara.object.element.common.Element

creates a map path for the element
(-> (query/query-class clojure.lang.PersistentVector ["create" :#])
    (multi/find-method-candidate [java.util.List]))
;; #[create :: (java.util.List) -> clojure.lang.PersistentVector]
=> hara.object.element.common.Element
raw docstring

get-nameclj

(get-name v)

all elements in the array have to have the same name (multi/get-name [{:name "a"} {:name "b"}]) => (throws)

(multi/get-name [{:name "a"} {:name "a"}]) => "a"

all elements in the array have to have the same name
(multi/get-name [{:name "a"} {:name "b"}])
=> (throws)

(multi/get-name [{:name "a"} {:name "a"}])
=> "a"
raw docstring

multi-elementclj

(multi-element m v)

combining elements together into one

(->> (query/query-class clojure.lang.PersistentVector ["create"]) (multi/multi-element {})) ;;=> #[create :: ([java.util.List]), ... ([java.lang.Iterable])]

combining elements together into one

(->> (query/query-class clojure.lang.PersistentVector ["create"])
     (multi/multi-element {}))
;;=> #[create :: ([java.util.List]), ... ([java.lang.Iterable])]
raw docstring

to-element-arrayclj

(to-element-array m0)

converts a three layer map to a flat sequence of values

(multi/to-element-array {:a {:b {:c 1 :d 2}}}) => [1 2]

converts a three layer map to a flat sequence of values

(multi/to-element-array {:a {:b {:c 1
                                 :d 2}}})
=> [1 2]
raw docstring

to-element-map-pathclj

(to-element-map-path ele)

creates a map path for the element

(-> (query/query-class String ["charAt" :#]) (multi/to-element-map-path)) => [:method 2 [java.lang.String Integer/TYPE]]

creates a map path for the element

(-> (query/query-class String ["charAt" :#])
    (multi/to-element-map-path))
=> [:method 2 [java.lang.String Integer/TYPE]]
raw docstring

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

× close