IDs for MatchAction objects using block allocation
Modified MatchActionId and MatchActionOperationsId to
use longs as IDs and to use ID block allocation to
create them.
Change-Id: I757b353a94a498f624df345cbc16975714db15b3
diff --git a/src/main/java/net/onrc/onos/core/matchaction/MatchActionOperations.java b/src/main/java/net/onrc/onos/core/matchaction/MatchActionOperations.java
index a17d0f2..c865203 100644
--- a/src/main/java/net/onrc/onos/core/matchaction/MatchActionOperations.java
+++ b/src/main/java/net/onrc/onos/core/matchaction/MatchActionOperations.java
@@ -28,22 +28,11 @@
*
* @param newId match action operations identifier for this instance
*/
- private MatchActionOperations(final MatchActionOperationsId newId) {
+ public MatchActionOperations(final MatchActionOperationsId newId) {
id = checkNotNull(newId);
}
/**
- * Creates a MatchActionOperations object from an id.
- *
- * @param newId match action operations identifier to use for the new object
- * @return Match Action Operations object
- */
- public static MatchActionOperations createMatchActionsOperations(
- final MatchActionOperationsId newId) {
- return new MatchActionOperations(newId);
- }
-
- /**
* Gets the identifier for the Match Action Operations object.
*
* @return identifier for the Opertions object