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

matthew_swift
01.05.2007 bfbbaa4e458735b6410c686a806c512f6fac7e2a
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
commitbfbbaa4e458735b6410c686a806c512f6fac7e2a
tree 6dcc83911db3c2a8aceb761fa1e796d177d336c9 tree | zip | gz
parent 1487d09f85747d398ab99e40a843734e72967df1 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
opends/src/server/org/opends/server/admin/SizePropertyDefinition.java 3 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/SizeUnit.java 199 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/SizePropertyDefinitionTest.java 14 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/SizeUnitTest.java 55 ●●●● diff | view | raw | blame | history