Liking cljdoc? Tell your friends :D

clj-oci.util


<datesclj

(<dates & dts)

Returns true if the given java.util.Date arguments are in strictly ascending order.

Returns true if the given `java.util.Date` arguments are in strictly ascending order.
raw docstring

>datesclj

(>dates & dts)

Returns true if the given java.util.Date arguments are in strictly descending order.

Returns true if the given `java.util.Date` arguments are in strictly descending order.
raw docstring

_api-stubclj

(_api-stub)
(_api-stub expected-result)

Returns a function that captures its argument list unless it is invoked with :stub/state as the initial argument. If it is invoked with :stub/state as the initial argument, it returns the last argument list it captured. Otherwise, it returns expected-result or nil if none was specified.

Intended for use in tests.

Returns a function that captures its argument list unless it is invoked
with `:stub/state` as the initial argument.  If it is invoked with
`:stub/state` as the initial argument, it returns the last argument list
it captured.  Otherwise, it returns `expected-result` or `nil` if none
was specified.

Intended for use in tests.
raw docstring

kw->java-constantclj

(kw->java-constant m maybe-kw)

Converts a keyword like :some/constant-name to SomeConstantName. Returns nil if the keyword is not found in the map.

Converts a keyword like :some/constant-name to SomeConstantName.  Returns nil if
the keyword is not found in the map.
raw docstring

kw->java-constant-strictclj

(kw->java-constant-strict m err maybe-kw)

Converts a keyword like :some/constant-name to SomeConstantName.

Converts a keyword like :some/constant-name to SomeConstantName.
raw docstring

maybeclj

(maybe f x)

A maybe monoid implementation for Clojure where the nil value behaves as the monoid zero.

Takes a function f and a value x, applies f to x if x is not nil, otherwise returns nil.

A `maybe` monoid implementation for Clojure where the nil value behaves as the
monoid zero.

Takes a function `f` and a value `x`, applies `f` to `x` if `x` is not nil,
otherwise returns nil.
raw docstring

next-dayclj

(next-day dt)

Takes a Date dt and returns a new date with 24 hours added.

Takes a Date `dt` and returns a new date with
24 hours added.
raw docstring

primitive?clj

(primitive? parameter-type)

Returns true if the given parameter-type is a Java primitive type or a commonly used boxed type or other simple type.

Returns true if the given `parameter-type` is a Java primitive type
or a commonly used boxed type or other simple type.
raw docstring

random-stringclj

(random-string length)
(random-string length prepend)

Generate a cryptographically-secure random string of length, with optional prepend prefix.

Generate a cryptographically-secure random string of `length`, with optional
`prepend` prefix.
raw docstring

start-of-dayclj

(start-of-day dt)

Takes a Date dt, returns a new Date representing the start of that day (00:00:00.000) in UTC.

Takes a Date `dt`, returns a new Date representing
the start of that day (00:00:00.000) in UTC.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close