mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
01.05.2007 cb4693073c437468f1e97ed8ed02b853a3c0e875
refs
author matthew_swift <matthew_swift@localhost>
Friday, June 1, 2007 13:05 +0200
committer matthew_swift <matthew_swift@localhost>
Friday, June 1, 2007 13:05 +0200
commitcb4693073c437468f1e97ed8ed02b853a3c0e875
tree 9a466545c368678f0714d9fb2cf7bc6d647624d6 tree | zip | gz
parent aac0063e14dc6391fd3300902a7b2ce005f532e7 view | diff
Add a new method for retrieving the "best-fit" size unit appropriate for a given number of bytes. This is intended for use in user interfaces since the value returned maybe a floating point value and subject to small errors. For LDAP encoding/decoding we still have the original getBestFitUnit() method but it has been renamed to getBestFitUnitExact(). Both methods are class methods.
4 files modified
271 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/admin/SizePropertyDefinition.java 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/SizeUnit.java 199 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/SizePropertyDefinitionTest.java 14 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/SizeUnitTest.java 55 ●●●● diff | view | raw | blame | history