longAt

Returns the numeric value as Long at pointer, or null if the path is absent, the value is not a numeric primitive, or the value has a fractional component.

Return

The long value at the specified path, or null.

Receiver

The KpaStruct to traverse.

Parameters

pointer

The KPointer identifying the value to retrieve.


Parses path via KPointer.from and returns the numeric value as Long at that path, or null if absent, not numeric, or has a fractional component.

Return

The long value at the specified path, or null.

Receiver

The KpaStruct to traverse.

Parameters

path

A pointer string (RFC 6901, fragment, or dot-notation, dispatched by prefix).

Throws

if path is not a valid pointer string.


fun KpaList.longAt(pointer: KPointer): Long?(source)

Returns the numeric value as Long at pointer, or null if the path is absent, the value is not a numeric primitive, or the value has a fractional component.

Return

The long value at the specified path, or null.

Receiver

The KpaList to traverse. * @throws IllegalStateException if an intermediate segment lands on a KpaPrimitive.

Parameters

pointer

The KPointer identifying the value to retrieve.


Parses path via KPointer.from and returns the numeric value as Long at that path, or null if absent, not numeric, or has a fractional component.

Return

The long value at the specified path, or null.

Receiver

The KpaList to traverse.

Parameters

path

A pointer string (RFC 6901, fragment, or dot-notation, dispatched by prefix).

Throws

if path is not a valid pointer string. * @throws IllegalStateException if an intermediate segment lands on a KpaPrimitive.