Package io.zenoh.keyexpr
Object KeyExpr.Companion
-
- All Implemented Interfaces:
public class KeyExpr.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static KeyExpr.Companion
INSTANCE
-
Method Summary
-
-
Method Detail
-
tryFrom
final KeyExpr tryFrom(String keyExpr)
Try from.
The default way to construct a KeyExpr. This function will ensure that the passed expression is valid. It won't however try to correct expressions that aren't canon.
You may use autocanonize instead if you are unsure if the expression you will use for construction will be canon.
- Parameters:
keyExpr
- The intended key expression as a string.- Returns:
The KeyExpr in case of success.
-
autocanonize
final KeyExpr autocanonize(String keyExpr)
Autocanonize.
This alternative constructor for key expressions will attempt to canonize the passed expression before checking if it is valid.
- Parameters:
keyExpr
- The intended key expression as a string.- Returns:
The canonized KeyExpr.
-
-
-
-