Toggle navigation
Home
java.lang.Long to org.apache.james.core.quota.QuotaSize
No. of Instances - 14
No. of Commits - 1
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Add or Remove Method invocation
Preconditions.checkArgument(limitValue >= 0,"Limit value should be positive or equal to zero")
to
Preconditions.checkArgument(limitValue.asLong() >= 0,"Limit value should be positive or equal to zero")
optional.map(row -> row.getLong(CassandraSieveClusterQuotaTable.VALUE))
to
optional.map(row -> QuotaSize.size(row.getLong(CassandraSieveClusterQuotaTable.VALUE)))
cassandraAsyncExecutor.executeSingleRow(selectUserQuotaStatement.bind().setString(CassandraSieveQuotaTable.USER_NAME,user))
to
cassandraAsyncExecutor.executeSingleRow(selectUserQuotaStatement.bind().setString(CassandraSieveQuotaTable.USER_NAME,user.asString()))
optional.map(row -> row.getLong(CassandraSieveQuotaTable.QUOTA))
to
optional.map(row -> QuotaSize.size(row.getLong(CassandraSieveQuotaTable.QUOTA)))
limit.map(limitContent -> currentUsage + sizeDifference > limitContent)
to
limit.map(limitContent -> !limitContent.isGreaterThan(QuotaSize.size(currentUsage + sizeDifference)))
Other
requestedSize
to
requestedSize