public final class XtendBuilderExtensions extends Object
Builder
s.
import static extension org.opendaylight.mdsal.binding.testutils .XtendBuilderExtensions.operator_doubleGreaterThan
allows to write (in an *.xtend, not *.java):
new InterfaceBuilder >> [ name = "hello, world" ]
instead of:
(new InterfaceBuilder => [ name = "hello, world" ]).build
See also org.eclipse.xtext.xbase.lib.ObjectExtensions.operator_doubleArrow for background.
Modifier and Type | Method and Description |
---|---|
static <P,T extends org.opendaylight.yangtools.concepts.Builder<P>> |
operator_doubleGreaterThan(T object,
org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super T> block) |
Copyright © 2019 OpenDaylight. All rights reserved.