Modify getter name to match the project naming convention

Change-Id: I848e2e15563a6a8e3c0de133eda3fcad0bd6e434
diff --git a/core/api/src/main/java/org/onlab/onos/net/intent/constraint/LatencyConstraint.java b/core/api/src/main/java/org/onlab/onos/net/intent/constraint/LatencyConstraint.java
index ac9c5e2..fcdf330 100644
--- a/core/api/src/main/java/org/onlab/onos/net/intent/constraint/LatencyConstraint.java
+++ b/core/api/src/main/java/org/onlab/onos/net/intent/constraint/LatencyConstraint.java
@@ -43,7 +43,7 @@
         this.latency = latency;
     }
 
-    public Duration getLatency() {
+    public Duration latency() {
         return latency;
     }