Open Kilda Java Documentation
org.openkilda.pce.Utils Class Reference

Static Public Member Functions

static String getIsoTimestamp ()
 
static int safeAsInt (Value val)
 

Detailed Description

Utils class contains basic utilities and constants.

Definition at line 28 of file Utils.java.

Member Function Documentation

◆ getIsoTimestamp()

static String org.openkilda.pce.Utils.getIsoTimestamp ( )
static

Return timestamp.

Returns
String timestamp

Definition at line 34 of file Utils.java.

◆ safeAsInt()

static int org.openkilda.pce.Utils.safeAsInt ( Value  val)
static

Safe transformation to integer (property value might be stored in neo4j in different types: string, null, etc).

Parameters
valthe value to parse
Returns
0 if val is null or not parseable, the int otherwise

Definition at line 43 of file Utils.java.


The documentation for this class was generated from the following file: