Committed by
Gerrit Code Review
Remove "public" from TrafficTreatment to follow our convention
Change-Id: Ie8bb48b211258c146836ddbf32e6835e291f370d
Showing
1 changed file
with
27 additions
and
27 deletions
| ... | @@ -69,7 +69,7 @@ public interface TrafficTreatment { | ... | @@ -69,7 +69,7 @@ public interface TrafficTreatment { |
| 69 | /** | 69 | /** |
| 70 | * Builder of traffic treatment entities. | 70 | * Builder of traffic treatment entities. |
| 71 | */ | 71 | */ |
| 72 | - public interface Builder { | 72 | + interface Builder { |
| 73 | 73 | ||
| 74 | /** | 74 | /** |
| 75 | * Adds an instruction to the builder. | 75 | * Adds an instruction to the builder. |
| ... | @@ -84,14 +84,14 @@ public interface TrafficTreatment { | ... | @@ -84,14 +84,14 @@ public interface TrafficTreatment { |
| 84 | * | 84 | * |
| 85 | * @return a treatment builder | 85 | * @return a treatment builder |
| 86 | */ | 86 | */ |
| 87 | - public Builder drop(); | 87 | + Builder drop(); |
| 88 | 88 | ||
| 89 | /** | 89 | /** |
| 90 | * Adds a punt-to-controller instruction. | 90 | * Adds a punt-to-controller instruction. |
| 91 | * | 91 | * |
| 92 | * @return a treatment builder | 92 | * @return a treatment builder |
| 93 | */ | 93 | */ |
| 94 | - public Builder punt(); | 94 | + Builder punt(); |
| 95 | 95 | ||
| 96 | /** | 96 | /** |
| 97 | * Set the output port. | 97 | * Set the output port. |
| ... | @@ -99,7 +99,7 @@ public interface TrafficTreatment { | ... | @@ -99,7 +99,7 @@ public interface TrafficTreatment { |
| 99 | * @param number the out port | 99 | * @param number the out port |
| 100 | * @return a treatment builder | 100 | * @return a treatment builder |
| 101 | */ | 101 | */ |
| 102 | - public Builder setOutput(PortNumber number); | 102 | + Builder setOutput(PortNumber number); |
| 103 | 103 | ||
| 104 | /** | 104 | /** |
| 105 | * Sets the src l2 address. | 105 | * Sets the src l2 address. |
| ... | @@ -107,7 +107,7 @@ public interface TrafficTreatment { | ... | @@ -107,7 +107,7 @@ public interface TrafficTreatment { |
| 107 | * @param addr a macaddress | 107 | * @param addr a macaddress |
| 108 | * @return a treatment builder | 108 | * @return a treatment builder |
| 109 | */ | 109 | */ |
| 110 | - public Builder setEthSrc(MacAddress addr); | 110 | + Builder setEthSrc(MacAddress addr); |
| 111 | 111 | ||
| 112 | /** | 112 | /** |
| 113 | * Sets the dst l2 address. | 113 | * Sets the dst l2 address. |
| ... | @@ -115,7 +115,7 @@ public interface TrafficTreatment { | ... | @@ -115,7 +115,7 @@ public interface TrafficTreatment { |
| 115 | * @param addr a macaddress | 115 | * @param addr a macaddress |
| 116 | * @return a treatment builder | 116 | * @return a treatment builder |
| 117 | */ | 117 | */ |
| 118 | - public Builder setEthDst(MacAddress addr); | 118 | + Builder setEthDst(MacAddress addr); |
| 119 | 119 | ||
| 120 | /** | 120 | /** |
| 121 | * Sets the vlan id. | 121 | * Sets the vlan id. |
| ... | @@ -123,7 +123,7 @@ public interface TrafficTreatment { | ... | @@ -123,7 +123,7 @@ public interface TrafficTreatment { |
| 123 | * @param id a vlanid | 123 | * @param id a vlanid |
| 124 | * @return a treatment builder | 124 | * @return a treatment builder |
| 125 | */ | 125 | */ |
| 126 | - public Builder setVlanId(VlanId id); | 126 | + Builder setVlanId(VlanId id); |
| 127 | 127 | ||
| 128 | /** | 128 | /** |
| 129 | * Sets the vlan priority. | 129 | * Sets the vlan priority. |
| ... | @@ -131,7 +131,7 @@ public interface TrafficTreatment { | ... | @@ -131,7 +131,7 @@ public interface TrafficTreatment { |
| 131 | * @param pcp a vlan priority | 131 | * @param pcp a vlan priority |
| 132 | * @return a treatment builder | 132 | * @return a treatment builder |
| 133 | */ | 133 | */ |
| 134 | - public Builder setVlanPcp(Byte pcp); | 134 | + Builder setVlanPcp(Byte pcp); |
| 135 | 135 | ||
| 136 | /** | 136 | /** |
| 137 | * Sets the src l3 address. | 137 | * Sets the src l3 address. |
| ... | @@ -139,7 +139,7 @@ public interface TrafficTreatment { | ... | @@ -139,7 +139,7 @@ public interface TrafficTreatment { |
| 139 | * @param addr an ip | 139 | * @param addr an ip |
| 140 | * @return a treatment builder | 140 | * @return a treatment builder |
| 141 | */ | 141 | */ |
| 142 | - public Builder setIpSrc(IpAddress addr); | 142 | + Builder setIpSrc(IpAddress addr); |
| 143 | 143 | ||
| 144 | /** | 144 | /** |
| 145 | * Sets the dst l3 address. | 145 | * Sets the dst l3 address. |
| ... | @@ -147,42 +147,42 @@ public interface TrafficTreatment { | ... | @@ -147,42 +147,42 @@ public interface TrafficTreatment { |
| 147 | * @param addr an ip | 147 | * @param addr an ip |
| 148 | * @return a treatment builder | 148 | * @return a treatment builder |
| 149 | */ | 149 | */ |
| 150 | - public Builder setIpDst(IpAddress addr); | 150 | + Builder setIpDst(IpAddress addr); |
| 151 | 151 | ||
| 152 | /** | 152 | /** |
| 153 | * Decrement the TTL in IP header by one. | 153 | * Decrement the TTL in IP header by one. |
| 154 | * | 154 | * |
| 155 | * @return a treatment builder | 155 | * @return a treatment builder |
| 156 | */ | 156 | */ |
| 157 | - public Builder decNwTtl(); | 157 | + Builder decNwTtl(); |
| 158 | 158 | ||
| 159 | /** | 159 | /** |
| 160 | * Copy the TTL to outer protocol layer. | 160 | * Copy the TTL to outer protocol layer. |
| 161 | * | 161 | * |
| 162 | * @return a treatment builder | 162 | * @return a treatment builder |
| 163 | */ | 163 | */ |
| 164 | - public Builder copyTtlOut(); | 164 | + Builder copyTtlOut(); |
| 165 | 165 | ||
| 166 | /** | 166 | /** |
| 167 | * Copy the TTL to inner protocol layer. | 167 | * Copy the TTL to inner protocol layer. |
| 168 | * | 168 | * |
| 169 | * @return a treatment builder | 169 | * @return a treatment builder |
| 170 | */ | 170 | */ |
| 171 | - public Builder copyTtlIn(); | 171 | + Builder copyTtlIn(); |
| 172 | 172 | ||
| 173 | /** | 173 | /** |
| 174 | * Push MPLS ether type. | 174 | * Push MPLS ether type. |
| 175 | * | 175 | * |
| 176 | * @return a treatment builder. | 176 | * @return a treatment builder. |
| 177 | */ | 177 | */ |
| 178 | - public Builder pushMpls(); | 178 | + Builder pushMpls(); |
| 179 | 179 | ||
| 180 | /** | 180 | /** |
| 181 | * Pops MPLS ether type. | 181 | * Pops MPLS ether type. |
| 182 | * | 182 | * |
| 183 | * @return a treatment builder. | 183 | * @return a treatment builder. |
| 184 | */ | 184 | */ |
| 185 | - public Builder popMpls(); | 185 | + Builder popMpls(); |
| 186 | 186 | ||
| 187 | /** | 187 | /** |
| 188 | * Pops MPLS ether type and set the new ethertype. | 188 | * Pops MPLS ether type and set the new ethertype. |
| ... | @@ -190,7 +190,7 @@ public interface TrafficTreatment { | ... | @@ -190,7 +190,7 @@ public interface TrafficTreatment { |
| 190 | * @param etherType an ether type | 190 | * @param etherType an ether type |
| 191 | * @return a treatment builder. | 191 | * @return a treatment builder. |
| 192 | */ | 192 | */ |
| 193 | - public Builder popMpls(Short etherType); | 193 | + Builder popMpls(Short etherType); |
| 194 | 194 | ||
| 195 | /** | 195 | /** |
| 196 | * Sets the mpls label. | 196 | * Sets the mpls label. |
| ... | @@ -198,14 +198,14 @@ public interface TrafficTreatment { | ... | @@ -198,14 +198,14 @@ public interface TrafficTreatment { |
| 198 | * @param mplsLabel MPLS label. | 198 | * @param mplsLabel MPLS label. |
| 199 | * @return a treatment builder. | 199 | * @return a treatment builder. |
| 200 | */ | 200 | */ |
| 201 | - public Builder setMpls(MplsLabel mplsLabel); | 201 | + Builder setMpls(MplsLabel mplsLabel); |
| 202 | 202 | ||
| 203 | /** | 203 | /** |
| 204 | * Decrement MPLS TTL. | 204 | * Decrement MPLS TTL. |
| 205 | * | 205 | * |
| 206 | * @return a treatment builder | 206 | * @return a treatment builder |
| 207 | */ | 207 | */ |
| 208 | - public Builder decMplsTtl(); | 208 | + Builder decMplsTtl(); |
| 209 | 209 | ||
| 210 | /** | 210 | /** |
| 211 | * Sets the optical channel ID or lambda. | 211 | * Sets the optical channel ID or lambda. |
| ... | @@ -213,7 +213,7 @@ public interface TrafficTreatment { | ... | @@ -213,7 +213,7 @@ public interface TrafficTreatment { |
| 213 | * @param lambda optical channel ID | 213 | * @param lambda optical channel ID |
| 214 | * @return a treatment builder | 214 | * @return a treatment builder |
| 215 | */ | 215 | */ |
| 216 | - public Builder setLambda(short lambda); | 216 | + Builder setLambda(short lambda); |
| 217 | 217 | ||
| 218 | /** | 218 | /** |
| 219 | * Sets the group ID. | 219 | * Sets the group ID. |
| ... | @@ -221,7 +221,7 @@ public interface TrafficTreatment { | ... | @@ -221,7 +221,7 @@ public interface TrafficTreatment { |
| 221 | * @param groupId group ID | 221 | * @param groupId group ID |
| 222 | * @return a treatment builder | 222 | * @return a treatment builder |
| 223 | */ | 223 | */ |
| 224 | - public Builder group(GroupId groupId); | 224 | + Builder group(GroupId groupId); |
| 225 | 225 | ||
| 226 | 226 | ||
| 227 | /** | 227 | /** |
| ... | @@ -231,7 +231,7 @@ public interface TrafficTreatment { | ... | @@ -231,7 +231,7 @@ public interface TrafficTreatment { |
| 231 | * @return a treatement builder | 231 | * @return a treatement builder |
| 232 | */ | 232 | */ |
| 233 | @Deprecated | 233 | @Deprecated |
| 234 | - public Builder transition(FlowRule.Type type); | 234 | + Builder transition(FlowRule.Type type); |
| 235 | 235 | ||
| 236 | /** | 236 | /** |
| 237 | * Sets the next table id to transition to. | 237 | * Sets the next table id to transition to. |
| ... | @@ -239,7 +239,7 @@ public interface TrafficTreatment { | ... | @@ -239,7 +239,7 @@ public interface TrafficTreatment { |
| 239 | * @param tableId the table table | 239 | * @param tableId the table table |
| 240 | * @return a treatement builder | 240 | * @return a treatement builder |
| 241 | */ | 241 | */ |
| 242 | - public Builder transition(Integer tableId); | 242 | + Builder transition(Integer tableId); |
| 243 | 243 | ||
| 244 | 244 | ||
| 245 | /** | 245 | /** |
| ... | @@ -247,33 +247,33 @@ public interface TrafficTreatment { | ... | @@ -247,33 +247,33 @@ public interface TrafficTreatment { |
| 247 | * | 247 | * |
| 248 | * @return a treatment builder. | 248 | * @return a treatment builder. |
| 249 | */ | 249 | */ |
| 250 | - public Builder popVlan(); | 250 | + Builder popVlan(); |
| 251 | 251 | ||
| 252 | /** | 252 | /** |
| 253 | * Pushes a new VLAN tag. | 253 | * Pushes a new VLAN tag. |
| 254 | * | 254 | * |
| 255 | * @return a treatment builder. | 255 | * @return a treatment builder. |
| 256 | */ | 256 | */ |
| 257 | - public Builder pushVlan(); | 257 | + Builder pushVlan(); |
| 258 | 258 | ||
| 259 | /** | 259 | /** |
| 260 | * Any instructions preceded by this method call will be deferred. | 260 | * Any instructions preceded by this method call will be deferred. |
| 261 | * @return a treatment builder | 261 | * @return a treatment builder |
| 262 | */ | 262 | */ |
| 263 | - public Builder deferred(); | 263 | + Builder deferred(); |
| 264 | 264 | ||
| 265 | /** | 265 | /** |
| 266 | * Any instructions preceded by this method call will be immediate. | 266 | * Any instructions preceded by this method call will be immediate. |
| 267 | * @return a treatment builder | 267 | * @return a treatment builder |
| 268 | */ | 268 | */ |
| 269 | - public Builder immediate(); | 269 | + Builder immediate(); |
| 270 | 270 | ||
| 271 | 271 | ||
| 272 | /** | 272 | /** |
| 273 | * Instructs the device to clear the deferred instructions set. | 273 | * Instructs the device to clear the deferred instructions set. |
| 274 | * @return a treatment builder | 274 | * @return a treatment builder |
| 275 | */ | 275 | */ |
| 276 | - public Builder wipeDeferred(); | 276 | + Builder wipeDeferred(); |
| 277 | 277 | ||
| 278 | /** | 278 | /** |
| 279 | * Builds an immutable traffic treatment descriptor. | 279 | * Builds an immutable traffic treatment descriptor. | ... | ... |
-
Please register or login to post a comment