6869707172737475767778
final Bytes b = Bytes.kilobytes(7.3); Assert.assertTrue(b.equals(Bytes.kilobytes(7.3))); Assert.assertTrue(b.greaterThan(Bytes.kilobytes(7.25))); Assert.assertTrue(b.lessThan(Bytes.kilobytes(7.9))); Assert.assertTrue(Bytes.valueOf(b.toString()).equals(b)); } /** *
6566676869707172737475
6768697071727374757677
7071727374757677787980
final Bytes b = Bytes.kilobytes(7.3); assertTrue(b.equals(Bytes.kilobytes(7.3))); assertTrue(b.greaterThan(Bytes.kilobytes(7.25))); assertTrue(b.lessThan(Bytes.kilobytes(7.9))); assertTrue(Bytes.valueOf(b.toString()).equals(b)); } /** *
99100101102103104105106107108109
@Override protected void onEvent(AjaxRequestTarget target, FileList fileList) { Bytes maxSize = getMaxSize(); if (maxSize.lessThan(fileList.getSize())) { addErrorMsg(target, fileList); onError(target, fileList); } else