Toggle navigation
Home
java.util.Optional to org.apache.james.mailbox.store.mail.model.SerializableQuotaValue
No. of Instances - 22
No. of Commits - 1
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Add or Remove Method invocation
value.map(count -> { if (count.isUnlimited()) { return ValueWithUnit.UNLIMITED; } return String.valueOf(count.asLong()); } )
to
value.toValue(QuotaCount::count,QuotaCount.unlimited()).map(count -> { if (count.isUnlimited()) { return ValueWithUnit.UNLIMITED; } return String.valueOf(count.asLong()); } )
value.map(size -> { if (size.isUnlimited()) { return ValueWithUnit.UNLIMITED; } return FileUtils.byteCountToDisplaySize(size.asLong()); } )
to
value.toValue(QuotaSize::size,QuotaSize.unlimited()).map(size -> { if (size.isUnlimited()) { return ValueWithUnit.UNLIMITED; } return FileUtils.byteCountToDisplaySize(size.asLong()); } )
Other
maxQuotaManager.getDefaultMaxMessage()
to
maxQuotaManager.getDefaultMaxMessage()
maxQuotaManager.getMaxMessage(quotaRootResolver.createQuotaRoot(quotaRoot))
to
maxQuotaManager.getMaxMessage(quotaRootResolver.createQuotaRoot(quotaRoot))
maxQuotaManager.getMaxStorage(quotaRootResolver.createQuotaRoot(quotaRoot))
to
maxQuotaManager.getMaxStorage(quotaRootResolver.createQuotaRoot(quotaRoot))
maxQuotaManager.getMaxMessage(quotaRootResolver.createQuotaRoot(quotaRoot))
to
maxQuotaManager.getMaxMessage(quotaRootResolver.createQuotaRoot(quotaRoot))
maxQuotaManager.getDefaultMaxStorage()
to
maxQuotaManager.getDefaultMaxStorage()
maxQuotaManager.getMaxStorage(quotaRootResolver.createQuotaRoot(quotaRoot))
to
maxQuotaManager.getMaxStorage(quotaRootResolver.createQuotaRoot(quotaRoot))
maxQuotaManager.getDefaultMaxMessage()
to
maxQuotaManager.getDefaultMaxMessage()
maxQuotaManager.getDefaultMaxStorage()
to
maxQuotaManager.getDefaultMaxStorage()