本文整理了Java中com.microsoft.azure.management.resources.fluentcore.utils.Utils.toPrimitiveInt()
方法的一些代码示例,展示了Utils.toPrimitiveInt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.toPrimitiveInt()
方法的具体详情如下:
包路径:com.microsoft.azure.management.resources.fluentcore.utils.Utils
类名称:Utils
方法名:toPrimitiveInt
[英]Converts an object Integer to a primitive int.
[中]将对象整数转换为基本整数。
代码示例来源:origin: com.microsoft.azure/azure-mgmt-eventhub
/**
* @return sku capacity
*/
public int capacity() {
return Utils.toPrimitiveInt(this.sku.capacity());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-servicebus
/**
* @return sku capacity
*/
public int capacity() {
return Utils.toPrimitiveInt(this.sku.capacity());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-network
@Override
public int numberOfProbes() {
return Utils.toPrimitiveInt(this.inner().numberOfProbes());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-network
@Override
public int idleTimeoutInMinutes() {
return Utils.toPrimitiveInt(this.inner().idleTimeoutInMinutes());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-network
@Override
public int bandwidthInMbps() {
return Utils.toPrimitiveInt(inner().bandwidthInMbps());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-network
@Override
public int backendPort() {
return Utils.toPrimitiveInt(this.inner().backendPort());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-network
@Override
public int bytesToCapturePerPacket() {
return Utils.toPrimitiveInt(inner().bytesToCapturePerPacket());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-compute
@Override
public int lun() {
return Utils.toPrimitiveInt(this.inner().lun());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-eventhub
@Override
public int throughputUnitsUpperLimit() {
return Utils.toPrimitiveInt(this.inner().maximumThroughputUnits());
}
代码示例来源:origin: Azure/azure-libraries-for-java
@Override
public int cpuCount() {
if (this.inner.agentConfiguration() == null) {
return 0;
}
return Utils.toPrimitiveInt(this.inner.agentConfiguration().cpu());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-compute
@Override
public int capacity() {
return Utils.toPrimitiveInt(this.inner().sku().capacity());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-eventhub
@Override
public int currentThroughputUnits() {
return Utils.toPrimitiveInt(this.inner().sku().capacity());
}
代码示例来源:origin: Azure/azure-libraries-for-java
@Override
public int cpuCount() {
if (this.inner.agentConfiguration() == null) {
return 0;
}
return Utils.toPrimitiveInt(this.inner.agentConfiguration().cpu());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-network
@Override
public int retentionDays() {
// will return default values if server response for retention policy was empty
ensureRetentionPolicy();
return Utils.toPrimitiveInt(inner().retentionPolicy().days());
}
代码示例来源:origin: Azure/azure-libraries-for-java
@Override
public int subscriptionCount() {
if (this.inner().subscriptionCount() == null) {
return 0;
}
return Utils.toPrimitiveInt(this.inner().subscriptionCount());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-compute
@Override
public int osDiskSize() {
return Utils.toPrimitiveInt(inner().storageProfile().osDisk().diskSizeGB());
}
代码示例来源:origin: com.microsoft.azure/azure-mgmt-eventhub
@Override
public int dataCaptureWindowSizeInSeconds() {
if (this.inner().captureDescription() == null) {
return 0;
}
return Utils.toPrimitiveInt(this.inner().captureDescription().intervalInSeconds());
}
代码示例来源:origin: Azure/azure-libraries-for-java
@Override
public int webServerLoggingFileSystemRetentionDays() {
if (inner().httpLogs() == null || inner().httpLogs().fileSystem() == null) {
return 0;
} else {
return Utils.toPrimitiveInt(inner().httpLogs().fileSystem().retentionInDays());
}
}
代码示例来源:origin: Azure/azure-libraries-for-java
@Override
public int webServerLoggingStorageBlobRetentionDays() {
if (inner().httpLogs() == null || inner().httpLogs().azureBlobStorage() == null) {
return 0;
} else {
return Utils.toPrimitiveInt(inner().httpLogs().azureBlobStorage().retentionInDays());
}
}
代码示例来源:origin: Azure/azure-libraries-for-java
@Override
public int applicationLoggingStorageBlobRetentionDays() {
if (inner().applicationLogs() == null || inner().applicationLogs().azureBlobStorage() == null) {
return 0;
} else {
return Utils.toPrimitiveInt(inner().applicationLogs().azureBlobStorage().retentionInDays());
}
}
内容来源于网络,如有侵权,请联系作者删除!