Class GroupRemovedBuilder
- java.lang.Object
-
- org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.GroupRemovedBuilder
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Builder<GroupRemoved>
,org.opendaylight.yangtools.concepts.CheckedBuilder<GroupRemoved,IllegalArgumentException>
,org.opendaylight.yangtools.concepts.Mutable
,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
public class GroupRemovedBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<GroupRemoved>
Class that buildsGroupRemovedBuilder
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:
GroupRemovedBuilder createTarget(int fooXyzzy, int barBaz) { return new GroupRemovedBuilderBuilder() .setFoo(new FooBuilder().setXyzzy(fooXyzzy).build()) .setBar(new BarBuilder().setBaz(barBaz).build()) .build(); }
This pattern is supported by the immutable nature of GroupRemovedBuilder, 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:
GroupRemovedBuilder
,Builder
-
-
Constructor Summary
Constructors Constructor Description GroupRemovedBuilder()
GroupRemovedBuilder(TransactionAware arg)
GroupRemovedBuilder(TransactionMetadata arg)
GroupRemovedBuilder(GroupRemoved base)
GroupRemovedBuilder(NodeGroup arg)
GroupRemovedBuilder(Group arg)
GroupRemovedBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupRemovedBuilder
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GroupRemoved>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<GroupRemoved> augmentationValue)
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GroupRemoved>>
E$$augmentation(Class<E$$> augmentationType)
GroupRemoved
build()
void
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.Buckets
getBuckets()
String
getContainerName()
GroupId
getGroupId()
String
getGroupName()
GroupRef
getGroupRef()
GroupTypes
getGroupType()
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef
getNode()
TransactionId
getTransactionId()
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri
getTransactionUri()
Boolean
isBarrier()
GroupRemovedBuilder
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GroupRemoved>> augmentationType)
GroupRemovedBuilder
setBarrier(Boolean value)
GroupRemovedBuilder
setBuckets(Buckets value)
GroupRemovedBuilder
setContainerName(String value)
GroupRemovedBuilder
setGroupId(GroupId value)
GroupRemovedBuilder
setGroupName(String value)
GroupRemovedBuilder
setGroupRef(GroupRef value)
GroupRemovedBuilder
setGroupType(GroupTypes value)
GroupRemovedBuilder
setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value)
GroupRemovedBuilder
setTransactionId(TransactionId value)
GroupRemovedBuilder
setTransactionUri(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value)
-
-
-
Constructor Detail
-
GroupRemovedBuilder
public GroupRemovedBuilder()
-
GroupRemovedBuilder
public GroupRemovedBuilder(TransactionMetadata arg)
-
GroupRemovedBuilder
public GroupRemovedBuilder(NodeGroup arg)
-
GroupRemovedBuilder
public GroupRemovedBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg)
-
GroupRemovedBuilder
public GroupRemovedBuilder(Group arg)
-
GroupRemovedBuilder
public GroupRemovedBuilder(TransactionAware arg)
-
GroupRemovedBuilder
public GroupRemovedBuilder(GroupRemoved 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.group.types.rev131018.Group
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionMetadata
- org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionAware
- org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef
- org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.NodeGroup
- Parameters:
arg
- grouping object- Throws:
IllegalArgumentException
- if given argument is none of valid types
-
getBuckets
public Buckets getBuckets()
-
getContainerName
public String getContainerName()
-
getGroupId
public GroupId getGroupId()
-
getGroupName
public String getGroupName()
-
getGroupRef
public GroupRef getGroupRef()
-
getGroupType
public GroupTypes getGroupType()
-
getNode
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef getNode()
-
getTransactionId
public TransactionId getTransactionId()
-
getTransactionUri
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri getTransactionUri()
-
isBarrier
public Boolean isBarrier()
-
augmentation
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GroupRemoved>> E$$ augmentation(Class<E$$> augmentationType)
-
setBuckets
public GroupRemovedBuilder setBuckets(Buckets value)
-
setContainerName
public GroupRemovedBuilder setContainerName(String value)
-
setGroupId
public GroupRemovedBuilder setGroupId(GroupId value)
-
setGroupName
public GroupRemovedBuilder setGroupName(String value)
-
setGroupRef
public GroupRemovedBuilder setGroupRef(GroupRef value)
-
setGroupType
public GroupRemovedBuilder setGroupType(GroupTypes value)
-
setNode
public GroupRemovedBuilder setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value)
-
setTransactionId
public GroupRemovedBuilder setTransactionId(TransactionId value)
-
setTransactionUri
public GroupRemovedBuilder setTransactionUri(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value)
-
setBarrier
public GroupRemovedBuilder setBarrier(Boolean value)
-
addAugmentation
public GroupRemovedBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GroupRemoved>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<GroupRemoved> augmentationValue)
-
removeAugmentation
public GroupRemovedBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GroupRemoved>> augmentationType)
-
build
public GroupRemoved build()
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.Builder<GroupRemoved>
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.CheckedBuilder<GroupRemoved,IllegalArgumentException>
-
-