當前位置: 首頁>>代碼示例>>Java>>正文


Java Delegate類代碼示例

本文整理匯總了Java中lombok.experimental.Delegate的典型用法代碼示例。如果您正苦於以下問題:Java Delegate類的具體用法?Java Delegate怎麽用?Java Delegate使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Delegate類屬於lombok.experimental包,在下文中一共展示了Delegate類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getUpdatesOfPrint

import lombok.experimental.Delegate; //導入依賴的package包/類
private int getUpdatesOfPrint(String id) {
	
	return idUpdatesMap.computeIfAbsent(id, k -> {
		
		VxmlParameters localParameters = new VxmlParameters() {
			
			@Delegate(excludes=Uri.class)
			VxmlParameters d = parameters;
			
			public String getUri() {
				return gvpUri;
			};
		};
		VxmlClientGetVoiceprint getVoicePrint = new VxmlClientGetVoiceprint(localParameters);
		VxmlRequestTask gvpTask = new VxmlRequestTask(k, "");
		gvpTask.setKey(k);
		getVoicePrint.sendAndReceive(gvpTask);
		Iterator<SummaryGetVoiceprint> i = getVoicePrint.summaryGetVoiceprintMap.values().iterator();
		if (i.hasNext()) {
			return i.next().getPrintUpdates().get(0);
		} else {
			return -1;
		}
	});
}
 
開發者ID:Auraya,項目名稱:armorvox-client,代碼行數:26,代碼來源:VxmlClientCrossMatch.java

示例2: findDelegatesAndMarkAsHandled

import lombok.experimental.Delegate; //導入依賴的package包/類
public static Annotation[] findDelegatesAndMarkAsHandled(EclipseNode fieldNode) {
	List<Annotation> delegates = new ArrayList<Annotation>();
	for (EclipseNode child : fieldNode.down()) {
		if (annotationTypeMatches(Delegate.class, child)) {
			Annotation delegate = (Annotation)child.get();
			PatchDelegate.markHandled(delegate);
			delegates.add(delegate);
		}
	}
	return delegates.toArray(EMPTY_ANNOTATIONS_ARRAY);
}
 
開發者ID:git03394538,項目名稱:lombok-ianchiu,代碼行數:12,代碼來源:HandleGetter.java

示例3: getLocalLogCollector

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
  return localLogCollectorFactory.build(this, new String[] {
      "/var/log/upstart/redis-server.log",
      "/var/log/redis/redis-server.log"
  });
}
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:8,代碼來源:LocalDebianRedisService.java

示例4: getLocalLogCollector

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
  return localLogCollectorFactory.build(this, new String[]{
      "/var/log/upstart/spinnaker-monitoring.log",
      "/var/log/spinnaker-monitoring/"
  });
}
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:8,代碼來源:LocalDebianMonitoringDaemonService.java

示例5: getLocalLogCollector

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
  return localLogCollectorFactory.build(this, new String[] {
    "/var/log/upstart/apache.log",
    "/var/log/apache/"
  });
}
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:8,代碼來源:LocalDebianDeckService.java

示例6: handle

import lombok.experimental.Delegate; //導入依賴的package包/類
public void handle(AnnotationValues<Delegate> annotation, Annotation ast, EclipseNode annotationNode) {
	handleExperimentalFlagUsage(annotationNode, ConfigurationKeys.DELEGATE_FLAG_USAGE, "@Delegate");
}
 
開發者ID:git03394538,項目名稱:lombok-ianchiu,代碼行數:4,代碼來源:HandleDelegate.java

示例7: getBar

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate
public abstract Bar getBar();
 
開發者ID:git03394538,項目名稱:lombok-ianchiu,代碼行數:3,代碼來源:DelegateOnMethods.java

示例8: staticMethod

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate private static final java.lang.Runnable staticMethod() {
	return null;
}
 
開發者ID:git03394538,項目名稱:lombok-ianchiu,代碼行數:4,代碼來源:DelegateOnStatic.java

示例9: getLocalLogCollector

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
  return localLogCollectorFactory.build(this);
}
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:5,代碼來源:LocalDebianFront50Service.java

示例10: getLogCollector

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate(excludes = HasServiceSettings.class)
public DistributedLogCollector getLogCollector() {
  return getLogCollectorFactory().build(this);
}
 
開發者ID:spinnaker,項目名稱:halyard,代碼行數:5,代碼來源:KubernetesEchoService.java

示例11: webdriver

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate
public WebdriverActions webdriver() {
    return new WebdriverActions(getDriver());
}
 
開發者ID:lithiumtech,項目名稱:mineraloil-selenium,代碼行數:5,代碼來源:Driver.java

示例12: getProxy

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate
private BlockProxy<BlockCustom> getProxy()
{
    return proxy == null ? BlockProxy.<BlockCustom>dummy() : proxy;
}
 
開發者ID:tterrag1098,項目名稱:CustomThings,代碼行數:6,代碼來源:BlockCustom.java

示例13: getProxy

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomSlab> getProxy()
{
    return proxy == null ? BlockProxy.<BlockCustomSlab> dummy() : proxy;
}
 
開發者ID:tterrag1098,項目名稱:CustomThings,代碼行數:6,代碼來源:BlockCustomSlab.java

示例14: getProxy

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomFence> getProxy()
{
    return proxy == null ? BlockProxy.<BlockCustomFence> dummy() : proxy;
}
 
開發者ID:tterrag1098,項目名稱:CustomThings,代碼行數:6,代碼來源:BlockCustomFence.java

示例15: getProxy

import lombok.experimental.Delegate; //導入依賴的package包/類
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomWall> getProxy()
{
    return proxy == null ? BlockProxy.<BlockCustomWall> dummy() : proxy;
}
 
開發者ID:tterrag1098,項目名稱:CustomThings,代碼行數:6,代碼來源:BlockCustomWall.java


注:本文中的lombok.experimental.Delegate類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。