lombok.Delegate.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(12.0k)|赞(0)|评价(0)|浏览(196)

本文整理了Java中lombok.Delegate.<init>()方法的一些代码示例,展示了Delegate.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Delegate.<init>()方法的具体详情如下:
包路径:lombok.Delegate
类名称:Delegate
方法名:<init>

Delegate.<init>介绍

暂无

代码示例

代码示例来源:origin: it.tidalwave.accounting/it-tidalwave-accounting-ui-commons

/***********************************************************************************************************************
 *
 * @author Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
public abstract class ToolBarModelSupport implements ToolBarModel 
 {
  @Delegate
  private final AsSupport asSupport = new AsSupport(this);
 }

代码示例来源:origin: it.tidalwave.accounting/it-tidalwave-accounting-ui-javafx

/***********************************************************************************************************************
 *
 * @author  Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
public class JavaFxHourlyReportPresentation implements HourlyReportPresentation
 {
  private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxHourlyReportPresentation.class);

  @Delegate
  private final HourlyReportPresentation delegate = nad.getDelegate();
 }

代码示例来源:origin: it.tidalwave.accounting/it-tidalwave-accounting-ui-javafx

/***********************************************************************************************************************
 *
 * @author  Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
public class JavaFxIBizImporterPresentation implements IBizImporterPresentation
 {
  private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxIBizImporterPresentation.class);

  @Delegate
  private final IBizImporterPresentation delegate = nad.getDelegate();
 }

代码示例来源:origin: it.tidalwave.blueshades/it-tidalwave-blueshades-profileevaluation-ui-netbeans

/***********************************************************************************************************************
 *
 * @author  Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
public class NetBeansProfileEvaluationMainPresentation implements ProfileEvaluationMainPresentation
 {
  @Delegate(types=ProfileEvaluationMainPresentation.class)
  protected final ProfileEvaluationMainPresentation panel;
  
  protected final ProfileEvaluationMainTopComponent topComponent;
  
  public NetBeansProfileEvaluationMainPresentation()
   {
    assert EventQueue.isDispatchThread();
    topComponent = (ProfileEvaluationMainTopComponent)WindowManager.getDefault().findTopComponent("ProfileEvaluationMainTopComponent");
    panel = topComponent.getContent();
   }
 }

代码示例来源:origin: it.tidalwave.accounting/it-tidalwave-accounting-ui-javafx

/***********************************************************************************************************************
 *
 * @author  Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
public class JavaFxCustomerExplorerPresentation implements CustomerExplorerPresentation
 {
  @Getter
  private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxCustomerExplorerPresentation.class);

  @Delegate
  private final CustomerExplorerPresentation delegate = nad.getDelegate();
 }

代码示例来源:origin: it.tidalwave.accounting/it-tidalwave-accounting-ui-javafx

/***********************************************************************************************************************
 *
 * @author  Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
public class JavaFxProjectExplorerPresentation implements ProjectExplorerPresentation
 {
  @Getter
  private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxProjectExplorerPresentation.class);

  @Delegate
  private final ProjectExplorerPresentation delegate = nad.getDelegate();
 }

代码示例来源:origin: it.tidalwave.accounting/it-tidalwave-accounting-ui-javafx

/***********************************************************************************************************************
 *
 * @author  Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
public class JavaFxJobEventExplorerPresentation implements JobEventExplorerPresentation
 {
  @Getter
  private final NodeAndDelegate nad = createNodeAndDelegate(JavaFxJobEventExplorerPresentation.class);

  @Delegate
  private final JobEventExplorerPresentation delegate = nad.getDelegate();
 }

代码示例来源:origin: it.tidalwave.thesefoolishthings/it-tidalwave-thesefoolishthings-examples-data

/***********************************************************************************************************************
 *
 * @author  Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
@NoArgsConstructor
public class ListOfPersons implements List<Person>
 {
  @Delegate
  private final List<Person> persons = new ArrayList<Person>();

  public ListOfPersons (final @Nonnull List<Person> persons)
   {
    this.persons.addAll(persons);
   }
 }

代码示例来源:origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-filesystem-basic

/***********************************************************************************************************************
 *
 * FIXME: this could probably be merged to the superclass.
 *
 * @author  Fabrizio Giudici
 * @version $Id: DecoratorResourceFile.java,v f214f4c8488f 2014/01/03 18:03:50 fabrizio $
 *
 **********************************************************************************************************************/
@ToString(of = "delegate")
class DecoratorResourceFile extends DecoratedResourceFileSupport
 {
  @Delegate(types = ResourceFile.class, excludes = FileDelegateExclusions.class) @Nonnull
  private final ResourceFile delegate;

  public DecoratorResourceFile (final @Nonnull LayeredResourceFileSystem fileSystem,
                 final @Nonnull ResourceFile delegate)
   {
    super(fileSystem, delegate);
    this.delegate = delegate;
   }
 }

代码示例来源:origin: it.tidalwave.northernwind/it-tidalwave-northernwind-frontend-core

/***********************************************************************************************************************
 *
 * A {@code DefaultMedia} item is a document that is served as-is, without any processing. It's typically an image or such.
 * 
 * @author  Fabrizio Giudici
 * @version $Id$
 *
 **********************************************************************************************************************/
@Slf4j @ToString
/* package */ class DefaultMedia implements Media
 {
  @Nonnull @Getter @Delegate(types=Resource.class)
  private final Resource resource;

  /*******************************************************************************************************************
   *
   *
   ******************************************************************************************************************/
  public DefaultMedia (final @Nonnull FileObject file)
   {
    resource = new DefaultResource(file);  
   }
 }

代码示例来源:origin: it.tidalwave.steelblue/it-tidalwave-steelblue-example-backend

public class SimpleDciEntity implements As
  @Delegate
  private final AsSupport asDelegate;

代码示例来源:origin: com.googlecode.netlib-java/netlib-java

/**
 * @deprecated use {@link com.github.fommil.netlib.BLAS}
 */
@Deprecated
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@Log
public class BLAS extends com.github.fommil.netlib.BLAS {

 private static final BLAS INSTANCE = new BLAS();

 /**
  * @return
  * @deprecated use {@link com.github.fommil.netlib.BLAS#getInstance()}
  */
 @Deprecated
 public static BLAS getInstance() {
  log.warning("this API is deprecated and will be removed. Instead, use com.github.fommil.netlib.BLAS");
  return INSTANCE;
 }

 @Delegate
 private final com.github.fommil.netlib.BLAS DELEGATE = com.github.fommil.netlib.BLAS.getInstance();

}

代码示例来源:origin: com.googlecode.netlib-java/netlib-java

/**
 * @deprecated use {@link com.github.fommil.netlib.LAPACK}
 */
@Deprecated
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@Log
public class LAPACK extends com.github.fommil.netlib.LAPACK {

 private static final LAPACK INSTANCE = new LAPACK();

 /**
  * @return
  * @deprecated use {@link com.github.fommil.netlib.LAPACK#getInstance()}
  */
 @Deprecated
 public static LAPACK getInstance() {
  log.warning("this API is deprecated and will be removed. Instead, use com.github.fommil.netlib.LAPACK");
  return INSTANCE;
 }

 @Delegate
 private final com.github.fommil.netlib.LAPACK DELEGATE = com.github.fommil.netlib.LAPACK.getInstance();

}

代码示例来源:origin: com.googlecode.netlib-java/netlib-java

/**
 * @deprecated use {@link com.github.fommil.netlib.ARPACK}
 */
@Deprecated
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@Log
public class ARPACK extends com.github.fommil.netlib.ARPACK {

 private static final ARPACK INSTANCE = new ARPACK();

 /**
  * @return
  * @deprecated use {@link com.github.fommil.netlib.BLAS#getInstance()}
  */
 @Deprecated
 public static ARPACK getInstance() {
  log.warning("this API is deprecated and will be removed. Instead, use com.github.fommil.netlib.ARPACK");
  return INSTANCE;
 }

 @Delegate
 private final com.github.fommil.netlib.ARPACK DELEGATE = com.github.fommil.netlib.ARPACK.getInstance();

}

代码示例来源:origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

class NodeLinkMacroExpanderFixture extends NodeLinkMacroFilter
 {
  @Delegate(types = MacroFilterTestHelper.class) @Getter
  private final MacroFilterTestHelper helper = new MacroFilterTestHelper();
 }

代码示例来源:origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

class NodeLinkWithContentMacroFilterFixture extends NodeLinkWithContentMacroFilter
 {
  @Delegate(types = MacroFilterTestHelper.class) @Getter
  private final MacroFilterTestHelper helper = new MacroFilterTestHelper();
 }

代码示例来源:origin: it.tidalwave.blueargyle/it-tidalwave-uniformity-ui-netbeans

/*******************************************************************************************************************
 * 
 * Mockito can't spy() synthetic proxies and unfortunately our Presentation is one. So we wrap it with a regular
 * class.
 *
 ******************************************************************************************************************/
@RequiredArgsConstructor
static class Wrapper implements UniformityCheckMeasurementPresentation
 {
  @Nonnull @Delegate(types=UniformityCheckMeasurementPresentation.class)
  private final UniformityCheckMeasurementPresentation delegate;
 }

代码示例来源:origin: it.tidalwave.blueshades/it-tidalwave-blueshades-uniformity-ui-netbeans

/*******************************************************************************************************************
 * 
 * Mockito can't spy() synthetic proxies and unfortunately our Presentation is one. So we wrap it with a regular
 * class.
 *
 ******************************************************************************************************************/
@RequiredArgsConstructor
static class Wrapper implements UniformityCheckMeasurementPresentation
 {
  @Nonnull @Delegate(types=UniformityCheckMeasurementPresentation.class)
  private final UniformityCheckMeasurementPresentation delegate;
 }

代码示例来源:origin: loldevs/riotapi

/**
 * Created on 7/26/2014.
 */
@AmfType(amf3Type = Amf3Type.OBJECT)
@Serialization(name = "flex.messaging.io.ArrayCollection", externalizable = true)
public class ArrayCollection<E> extends ArrayList<E> implements Externalizable {
  @Delegate
  private ArrayList<E> source = new ArrayList<>();

  @Override
  public void writeExternal(ObjectOutput out) throws IOException {
    out.writeObject(source.toArray());
  }

  @Override
  @SneakyThrows(value = {InstantiationException.class, IllegalAccessException.class})
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    source.addAll((List) TypeConverter.typecast(List.class, in.readObject(), false));
  }
}

代码示例来源:origin: it.tidalwave.northernwind.rca/it-tidalwave-role-ui-javafx

@RequiredArgsConstructor
static class TestExecutorService implements ExecutorService
 {
  public final List<AssertionError> assertionErrors = new ArrayList<>();
  static interface Exclusions
   {
    public Future<?> submit (Runnable runnable);
   }
  @Delegate(excludes = Exclusions.class)
  private final ExecutorService delegate;
  @Override @Nonnull
  public Future<?> submit (final Runnable task)
   {
    return delegate.submit(new Runnable()
     {
      @Override
      public void run()
       {
        try
         {
          task.run();
         }
        catch (AssertionError e)
         {
          assertionErrors.add(e);
         }
       }
    }  );
   }
 }

相关文章

Delegate类方法