blob: 3613adae43acf35d7f721fd285896d6c5aa7baea [file] [log] [blame]
Sho SHIMIZU95cc1fb2014-08-18 11:32:10 -07001package net.onrc.onos.core.matchaction.action;
2
3/**
4 * An action which does not affect anything at all.
5 * In other words, NOP.
6 *
7 * This action can be used for intent only. Flow Manager and Match Action Manager
8 * may not handle correctly.
9 */
10public final class NullAction implements Action {
11 private static final NullAction INSTANCE = new NullAction();
12
13 private NullAction() {}
14
15 /**
16 * Returns singleton of this class.
17 *
18 * @return singleton of this class
19 */
20 static NullAction getInstance() {
21 return INSTANCE;
22 }
23}