Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 18F5618F9D for ; Wed, 17 Jun 2015 08:42:30 +0000 (UTC) Received: (qmail 46611 invoked by uid 500); 17 Jun 2015 08:42:29 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 46465 invoked by uid 500); 17 Jun 2015 08:42:29 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 46454 invoked by uid 99); 17 Jun 2015 08:42:29 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 08:42:29 +0000 Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 618181A056B for ; Wed, 17 Jun 2015 08:42:29 +0000 (UTC) Received: by igboe5 with SMTP id oe5so74485443igb.1 for ; Wed, 17 Jun 2015 01:42:27 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.164.233 with SMTP id yt9mr8410140igb.41.1434530547503; Wed, 17 Jun 2015 01:42:27 -0700 (PDT) Received: by 10.79.103.4 with HTTP; Wed, 17 Jun 2015 01:42:27 -0700 (PDT) Date: Wed, 17 Jun 2015 10:42:27 +0200 Message-ID: Subject: [IO] Re: ByteSizeUnit a la TimeUnit From: Benedikt Ritter To: Commons Developers List Content-Type: multipart/alternative; boundary=089e0149beacb41d230518b2ab36 --089e0149beacb41d230518b2ab36 Content-Type: text/plain; charset=UTF-8 Hi Gary, 2015-06-17 9:50 GMT+02:00 Gary Gregory : > Hi All: > > Java 5 introduced TimeUnit, a very nice enum. > > What do you all think of a ByteSizeUnit enum to handle bit, nibble, byte, > kilobyte, kilobit, megabyte and so on? > Have a look at IO-294 [1] and IO-373 [2]. Benedikt [1] https://issues.apache.org/jira/browse/IO-294 [2] https://issues.apache.org/jira/browse/IO-373 > > Gary > > -- > E-Mail: garydgregory@gmail.com | ggregory@apache.org > Java Persistence with Hibernate, Second Edition > > JUnit in Action, Second Edition > Spring Batch in Action > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- http://people.apache.org/~britter/ http://www.systemoutprintln.de/ http://twitter.com/BenediktRitter http://github.com/britter --089e0149beacb41d230518b2ab36--