lombok.Delegate类的使用及代码示例

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

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

Delegate介绍

暂无

代码示例

代码示例来源: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.northernwind.rca/it-tidalwave-util-supplement

implements BoundFunction<DOMAIN_TYPE, CODOMAIN_TYPE>
@Delegate // FIXME: weak
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);

代码示例来源:origin: it.tidalwave.thesefoolishthings/it-tidalwave-util-java8supplement

implements BoundFunction<DOMAIN_TYPE, CODOMAIN_TYPE>
@Delegate // FIXME: weak
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);

代码示例来源: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.blueshades/it-tidalwave-blueshades-uniformity-ui-netbeans

@Delegate(types=UniformityCheckMainPresentation.class, excludes=DelegateExclusions.class)
protected final UniformityCheckMainPanel panel;

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

@Delegate(types=UniformityCheckMainPresentation.class, excludes=DelegateExclusions.class)
protected final UniformityCheckMainPanel panel;

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

@Delegate(types=UniformityCheckMeasurementPresentation.class, excludes=DelegateExclusions.class)
protected final UniformityCheckMeasurementPresentationPanel panel = new UniformityCheckMeasurementPresentationPanel();

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

@Delegate(types=UniformityCheckMeasurementPresentation.class, excludes=DelegateExclusions.class)
protected final UniformityCheckMeasurementPresentationPanel panel = new UniformityCheckMeasurementPresentationPanel();

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

@Delegate(types=ProfileEvaluationSequencePresentation.class, excludes=DelegateExclusions.class)
protected final ProfileEvaluationSequencePanel panel = new ProfileEvaluationSequencePanel();

代码示例来源: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.thesefoolishthings/it-tidalwave-util-java8supplement

@Delegate @Nonnull
private final AsSupport asSupport;

代码示例来源:origin: it.tidalwave.northernwind.rca/it-tidalwave-util-supplement

@Delegate @Nonnull
private final AsSupport asSupport;

代码示例来源: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.accounting/it-tidalwave-accounting-importer-ibiz

@Delegate
private final Accounting accounting = Accounting.createNew();

相关文章