/** * Obtains the maximum {@link HeapSize} in the specified {@link Units}. * * @param units the required {@link Units} * * @return the maximum heap size in {@link Units} */publiclong getMaximumSizeAs(Units units)
{
return maximum * maximumUnits.getBytes() / units.getBytes();
}
/** * Obtains the maximum {@link HeapSize} in the specified {@link Units}. * * @param units the required {@link Units} * * @return the maximum heap size in {@link Units} */publiclong getMaximumSizeAs(Units units)
{
return maximum * maximumUnits.getBytes() / units.getBytes();
}