Class FlowCapableNodeUpdatedBuilder
- java.lang.Object
-
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeUpdatedBuilder
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Builder<FlowCapableNodeUpdated>
,org.opendaylight.yangtools.concepts.CheckedBuilder<FlowCapableNodeUpdated,IllegalArgumentException>
,org.opendaylight.yangtools.concepts.Mutable
,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
public class FlowCapableNodeUpdatedBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<FlowCapableNodeUpdated>
Class that buildsFlowCapableNodeUpdatedBuilder
instances. Overall design of the class is that of a fluent interface, where method chaining is used.In general, this class is supposed to be used like this template:
FlowCapableNodeUpdatedBuilder createTarget(int fooXyzzy, int barBaz) { return new FlowCapableNodeUpdatedBuilderBuilder() .setFoo(new FooBuilder().setXyzzy(fooXyzzy).build()) .setBar(new BarBuilder().setBaz(barBaz).build()) .build(); }
This pattern is supported by the immutable nature of FlowCapableNodeUpdatedBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
- very efficient Java bytecode, as the method invocation result, in this case the Builder reference, is
on the stack, so further method invocations just need to fill method arguments for the next method
invocation, which is terminated by
build()
, which is then returned from the method - better understanding by humans, as the scope of mutable state (the builder) is kept to a minimum and is very localized
- better optimization oportunities, as the object scope is minimized in terms of invocation (rather than method) stack, making escape analysis a lot easier. Given enough compiler (JIT/AOT) prowess, the cost of th builder object can be completely eliminated
- See Also:
FlowCapableNodeUpdatedBuilder
,Builder
-
-
Constructor Summary
Constructors Constructor Description FlowCapableNodeUpdatedBuilder()
FlowCapableNodeUpdatedBuilder(Desc arg)
FlowCapableNodeUpdatedBuilder(FlowCapableNodeUpdated base)
FlowCapableNodeUpdatedBuilder(FlowNode arg)
FlowCapableNodeUpdatedBuilder(IpAddressGrouping arg)
FlowCapableNodeUpdatedBuilder(Meters arg)
FlowCapableNodeUpdatedBuilder(PortNumberGrouping arg)
FlowCapableNodeUpdatedBuilder(Tables arg)
FlowCapableNodeUpdatedBuilder(Groups arg)
FlowCapableNodeUpdatedBuilder(TableFeatures arg)
-
Method Summary
-
-
-
Constructor Detail
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder()
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(FlowNode arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(Desc arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(Tables arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(TableFeatures arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(Groups arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(Meters arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(IpAddressGrouping arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(PortNumberGrouping arg)
-
FlowCapableNodeUpdatedBuilder
public FlowCapableNodeUpdatedBuilder(FlowCapableNodeUpdated base)
-
-
Method Detail
-
fieldsFrom
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument. Valid argument is instance of one of following types:- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.Desc
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.Meters
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.PortNumberGrouping
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.IpAddressGrouping
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.Tables
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowNode
- org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TableFeatures
- org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.Groups
- Parameters:
arg
- grouping object- Throws:
IllegalArgumentException
- if given argument is none of valid types
-
getDescription
public String getDescription()
-
getHardware
public String getHardware()
-
getIpAddress
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddress()
-
getManufacturer
public String getManufacturer()
-
getPortNumber
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getPortNumber()
-
getSerialNumber
public String getSerialNumber()
-
getSoftware
public String getSoftware()
-
getStaleGroup
public List<StaleGroup> getStaleGroup()
-
getStaleMeter
public List<StaleMeter> getStaleMeter()
-
getSupportedActions
public SupportedActions getSupportedActions()
-
getSupportedInstructions
public SupportedInstructions getSupportedInstructions()
-
getSupportedMatchTypes
public SupportedMatchTypes getSupportedMatchTypes()
-
getSwitchFeatures
public SwitchFeatures getSwitchFeatures()
-
getTableFeatures
public List<TableFeatures> getTableFeatures()
-
setDescription
public FlowCapableNodeUpdatedBuilder setDescription(String value)
-
setGroup
public FlowCapableNodeUpdatedBuilder setGroup(List<Group> values)
-
setHardware
public FlowCapableNodeUpdatedBuilder setHardware(String value)
-
setIpAddress
public FlowCapableNodeUpdatedBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
-
setManufacturer
public FlowCapableNodeUpdatedBuilder setManufacturer(String value)
-
setMeter
public FlowCapableNodeUpdatedBuilder setMeter(List<Meter> values)
-
setPortNumber
public FlowCapableNodeUpdatedBuilder setPortNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value)
-
setSerialNumber
public FlowCapableNodeUpdatedBuilder setSerialNumber(String value)
-
setSoftware
public FlowCapableNodeUpdatedBuilder setSoftware(String value)
-
setStaleGroup
public FlowCapableNodeUpdatedBuilder setStaleGroup(List<StaleGroup> values)
-
setStaleMeter
public FlowCapableNodeUpdatedBuilder setStaleMeter(List<StaleMeter> values)
-
setSupportedActions
public FlowCapableNodeUpdatedBuilder setSupportedActions(SupportedActions value)
-
setSupportedInstructions
public FlowCapableNodeUpdatedBuilder setSupportedInstructions(SupportedInstructions value)
-
setSupportedMatchTypes
public FlowCapableNodeUpdatedBuilder setSupportedMatchTypes(SupportedMatchTypes value)
-
setSwitchFeatures
public FlowCapableNodeUpdatedBuilder setSwitchFeatures(SwitchFeatures value)
-
setTable
public FlowCapableNodeUpdatedBuilder setTable(List<Table> values)
-
setTableFeatures
public FlowCapableNodeUpdatedBuilder setTableFeatures(List<TableFeatures> values)
-
build
public FlowCapableNodeUpdated build()
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.Builder<FlowCapableNodeUpdated>
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.CheckedBuilder<FlowCapableNodeUpdated,IllegalArgumentException>
-
-