commit | a3a476d1c4400e3a84ff899ceae54bd7608860c0 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Fri Apr 10 14:35:38 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Sat Apr 11 00:37:36 2015 +0000 |
tree | 7312cab3ed536cd621124acd32d8acf836a3d59b | |
parent | 1097c978fb72dc23a5c2c0ad678a765fd9df6edb [diff] [blame] |
reinstating the key field in FilterObjectives Change-Id: I25f7d105edd562785cb213f747e7d9e0650f2635
diff --git a/core/api/src/main/java/org/onosproject/net/flowobjective/FilteringObjective.java b/core/api/src/main/java/org/onosproject/net/flowobjective/FilteringObjective.java index 24ca2dc..d892a97 100644 --- a/core/api/src/main/java/org/onosproject/net/flowobjective/FilteringObjective.java +++ b/core/api/src/main/java/org/onosproject/net/flowobjective/FilteringObjective.java
@@ -41,6 +41,13 @@ } /** + * Obtain the key for this filter. + * + * @return a criterion + */ + public Criterion key(); + + /** * Obtain this filtering type. * @return the type */ @@ -59,6 +66,14 @@ public interface Builder extends Objective.Builder { /** + * Specify the key for the filter. + * + * @param key a criterion + * @return a filter objective builder + */ + public Builder withKey(Criterion key); + + /** * Add a filtering condition. * * @param criterion new criterion