Class RemoveFibEntryInputBuilder
- java.lang.Object
-
- org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.fib.rpc.rev160121.RemoveFibEntryInputBuilder
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Builder<RemoveFibEntryInput>
,org.opendaylight.yangtools.concepts.CheckedBuilder<RemoveFibEntryInput,java.lang.IllegalArgumentException>
,org.opendaylight.yangtools.concepts.Mutable
,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
public class RemoveFibEntryInputBuilder extends java.lang.Object implements org.opendaylight.yangtools.concepts.Builder<RemoveFibEntryInput>
Class that buildsRemoveFibEntryInputBuilder
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:
RemoveFibEntryInputBuilder createTarget(int fooXyzzy, int barBaz) { return new RemoveFibEntryInputBuilderBuilder() .setFoo(new FooBuilder().setXyzzy(fooXyzzy).build()) .setBar(new BarBuilder().setBaz(barBaz).build()) .build(); }
This pattern is supported by the immutable nature of RemoveFibEntryInputBuilder, 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:
RemoveFibEntryInputBuilder
,Builder
-
-
Constructor Summary
Constructors Constructor Description RemoveFibEntryInputBuilder()
RemoveFibEntryInputBuilder(FibEntryInputs arg)
RemoveFibEntryInputBuilder(RemoveFibEntryInput base)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RemoveFibEntryInputBuilder
addAugmentation(java.lang.Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoveFibEntryInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<RemoveFibEntryInput> augmentationValue)
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoveFibEntryInput>>
E$$augmentation(java.lang.Class<E$$> augmentationType)
RemoveFibEntryInput
build()
void
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.java.lang.String
getIpAddress()
FibEntryInputs.IpAddressSource
getIpAddressSource()
org.opendaylight.yangtools.yang.common.Uint32
getServiceId()
org.opendaylight.yangtools.yang.common.Uint64
getSourceDpid()
java.lang.String
getVpnName()
RemoveFibEntryInputBuilder
removeAugmentation(java.lang.Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoveFibEntryInput>> augmentationType)
RemoveFibEntryInputBuilder
setIpAddress(java.lang.String value)
RemoveFibEntryInputBuilder
setIpAddressSource(FibEntryInputs.IpAddressSource value)
RemoveFibEntryInputBuilder
setServiceId(java.lang.Long value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setServiceId(Uint32)} instead.RemoveFibEntryInputBuilder
setServiceId(org.opendaylight.yangtools.yang.common.Uint32 value)
RemoveFibEntryInputBuilder
setSourceDpid(java.math.BigInteger value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setSourceDpid(Uint64)} instead.RemoveFibEntryInputBuilder
setSourceDpid(org.opendaylight.yangtools.yang.common.Uint64 value)
RemoveFibEntryInputBuilder
setVpnName(java.lang.String value)
-
-
-
Constructor Detail
-
RemoveFibEntryInputBuilder
public RemoveFibEntryInputBuilder()
-
RemoveFibEntryInputBuilder
public RemoveFibEntryInputBuilder(FibEntryInputs arg)
-
RemoveFibEntryInputBuilder
public RemoveFibEntryInputBuilder(RemoveFibEntryInput 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.netvirt.fib.rpc.rev160121.FibEntryInputs
- Parameters:
arg
- grouping object- Throws:
java.lang.IllegalArgumentException
- if given argument is none of valid types
-
getIpAddress
public java.lang.String getIpAddress()
-
getIpAddressSource
public FibEntryInputs.IpAddressSource getIpAddressSource()
-
getServiceId
public org.opendaylight.yangtools.yang.common.Uint32 getServiceId()
-
getSourceDpid
public org.opendaylight.yangtools.yang.common.Uint64 getSourceDpid()
-
getVpnName
public java.lang.String getVpnName()
-
augmentation
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoveFibEntryInput>> E$$ augmentation(java.lang.Class<E$$> augmentationType)
-
setIpAddress
public RemoveFibEntryInputBuilder setIpAddress(java.lang.String value)
-
setIpAddressSource
public RemoveFibEntryInputBuilder setIpAddressSource(FibEntryInputs.IpAddressSource value)
-
setServiceId
public RemoveFibEntryInputBuilder setServiceId(org.opendaylight.yangtools.yang.common.Uint32 value)
-
setServiceId
@Deprecated(forRemoval=true) public RemoveFibEntryInputBuilder setServiceId(java.lang.Long value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setServiceId(Uint32)} instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setSourceDpid
public RemoveFibEntryInputBuilder setSourceDpid(org.opendaylight.yangtools.yang.common.Uint64 value)
-
setSourceDpid
@Deprecated(forRemoval=true) public RemoveFibEntryInputBuilder setSourceDpid(java.math.BigInteger value)
Deprecated, for removal: This API element is subject to removal in a future version.Use {#link setSourceDpid(Uint64)} instead.Utility migration setter.- Parameters:
value
- field value in legacy type- Returns:
- this builder
-
setVpnName
public RemoveFibEntryInputBuilder setVpnName(java.lang.String value)
-
addAugmentation
public RemoveFibEntryInputBuilder addAugmentation(java.lang.Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoveFibEntryInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<RemoveFibEntryInput> augmentationValue)
-
removeAugmentation
public RemoveFibEntryInputBuilder removeAugmentation(java.lang.Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoveFibEntryInput>> augmentationType)
-
build
public RemoveFibEntryInput build()
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.Builder<RemoveFibEntryInput>
- Specified by:
build
in interfaceorg.opendaylight.yangtools.concepts.CheckedBuilder<RemoveFibEntryInput,java.lang.IllegalArgumentException>
-
-